diff options
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 { |