diff options
author | Luke T. Shumaker <lukeshu@lukeshu.com> | 2024-09-24 22:22:32 -0600 |
---|---|---|
committer | Luke T. Shumaker <lukeshu@lukeshu.com> | 2024-09-24 22:22:32 -0600 |
commit | 729663cb9d20b0d36b3ef6b689447390b94006df (patch) | |
tree | e91f6b82b5bf4f0265518820dbd7ffe4fcd2bb4c /9p/defs.h | |
parent | 0b7bd5db8b2539d2e03b3a13b91ee6b21101460d (diff) |
wip config, 9p
Diffstat (limited to '9p/defs.h')
-rw-r--r-- | 9p/defs.h | 9 |
1 files changed, 3 insertions, 6 deletions
@@ -13,6 +13,7 @@ #define P9_NOFID ((uint32_t)~0U) enum p9_version { + P9_VER_UNINITIALIZED, /* P9_VER_9P1, */ P9_VER_9P2000, /*P9_VER_9P2000_u,*/ @@ -21,13 +22,9 @@ enum p9_version { _P9_VER_CNT, }; -struct p9_ctx { - enum p9_version version; - uint32_t max_msg_size; +struct p9_ctx; - uint32_t err_num; - char err_msg[256]; /* I chose 256 arbitrarily. */ -}; +enum p9_version p9_ctx_version(p9_ctx *); /** Write an static error into ctx, return -1. */ int p9_error(struct p9_ctx *ctx, uint32_t linux_errno, char const *msg); |