From 729663cb9d20b0d36b3ef6b689447390b94006df Mon Sep 17 00:00:00 2001 From: "Luke T. Shumaker" Date: Tue, 24 Sep 2024 22:22:32 -0600 Subject: wip config, 9p --- 9p/defs.h | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to '9p/defs.h') diff --git a/9p/defs.h b/9p/defs.h index 20a6411..907cdde 100644 --- a/9p/defs.h +++ b/9p/defs.h @@ -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); -- cgit v1.2.3-2-g168b