diff options
author | Luke T. Shumaker <lukeshu@lukeshu.com> | 2024-09-28 20:50:36 -0600 |
---|---|---|
committer | Luke T. Shumaker <lukeshu@lukeshu.com> | 2024-09-28 20:54:43 -0600 |
commit | f410026b7bc96dbb42fec3839dc5d2e41b12f4a4 (patch) | |
tree | 22e831eb47101ee4e3635fcaf2729a81a178823c /lib9p/internal.h | |
parent | f898850c2b4fef03f0d175ec052b3725bd406496 (diff) |
misc
Diffstat (limited to 'lib9p/internal.h')
-rw-r--r-- | lib9p/internal.h | 5 |
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 { |