diff options
author | Luke T. Shumaker <lukeshu@lukeshu.com> | 2024-10-04 17:28:54 -0600 |
---|---|---|
committer | Luke T. Shumaker <lukeshu@lukeshu.com> | 2024-10-04 17:28:54 -0600 |
commit | 2fe787ba4db420f5b08573d77e35cfaa0d7a0793 (patch) | |
tree | b9c1264b56d713a6df9b029606f87d824f3a3d20 /lib9p/internal.h | |
parent | b683e779ef83b88f6ffc503a1d1a4f3ec25a5cfa (diff) |
wip srv
Diffstat (limited to 'lib9p/internal.h')
-rw-r--r-- | lib9p/internal.h | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/lib9p/internal.h b/lib9p/internal.h index cbec829..36a2647 100644 --- a/lib9p/internal.h +++ b/lib9p/internal.h @@ -7,7 +7,6 @@ #ifndef _LIB9P_INTERNAL_H_ #define _LIB9P_INTERNAL_H_ -#include <assert.h> #include <stddef.h> /* for size_t */ #include <limits.h> /* for SSIZE_MAX */ @@ -30,21 +29,6 @@ static_assert(CONFIG_9P_MAX_ERR_SIZE + CONFIG_9P_MAX_MSG_SIZE + 2*CONFIG_9P_MAX_ #define CAT2(a, b) a##b #define CAT3(a, b, c) a##b##c -/* types **********************************************************************/ - -/* NB: We declare this here instead of in the public <lib9p/9p.h> - * because we don't want to include "config.h" from public headers, - * and I want the MAX_ERR_SIZE to be configurable. */ -struct lib9p_ctx { - /* negotiated */ - enum lib9p_version version; - uint32_t max_msg_size; - - /* state */ - uint32_t err_num; - char err_msg[CONFIG_9P_MAX_ERR_SIZE]; -}; - /* vtables ********************************************************************/ struct _validate_ctx { |