summaryrefslogtreecommitdiff
path: root/lib9p/internal.h
diff options
context:
space:
mode:
authorLuke T. Shumaker <lukeshu@lukeshu.com>2024-09-28 20:50:36 -0600
committerLuke T. Shumaker <lukeshu@lukeshu.com>2024-09-28 20:54:43 -0600
commitf410026b7bc96dbb42fec3839dc5d2e41b12f4a4 (patch)
tree22e831eb47101ee4e3635fcaf2729a81a178823c /lib9p/internal.h
parentf898850c2b4fef03f0d175ec052b3725bd406496 (diff)
misc
Diffstat (limited to 'lib9p/internal.h')
-rw-r--r--lib9p/internal.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib9p/internal.h b/lib9p/internal.h
index a5175af..08bb462 100644
--- a/lib9p/internal.h
+++ b/lib9p/internal.h
@@ -51,6 +51,7 @@ struct _checksize_ctx {
* "extra" beyond sizeof(). */
size_t host_extra;
};
+typedef bool (*_checksize_fn_t)(struct _checksize_ctx *ctx);
struct _unmarshal_ctx {
struct lib9p_ctx *ctx;
@@ -60,6 +61,7 @@ struct _unmarshal_ctx {
/* `extra` points to the beginning of unallocated space. */
void *extra;
};
+typedef void (*_unmarshal_fn_t)(struct _unmarshal_ctx *ctx, void *out);
struct _marshal_ctx {
struct lib9p_ctx *ctx;
@@ -67,9 +69,6 @@ struct _marshal_ctx {
uint8_t *net_bytes;
uint32_t net_offset;
};
-
-typedef bool (*_checksize_fn_t)(struct _checksize_ctx *ctx);
-typedef void (*_unmarshal_fn_t)(struct _unmarshal_ctx *ctx, void *out);
typedef bool (*_marshal_fn_t)(struct _marshal_ctx *ctx, void *host_val);
struct _vtable_msg {