diff options
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); |