summaryrefslogtreecommitdiff
path: root/lib9p/9p.c
diff options
context:
space:
mode:
authorLuke T. Shumaker <lukeshu@lukeshu.com>2024-10-04 17:28:54 -0600
committerLuke T. Shumaker <lukeshu@lukeshu.com>2024-10-04 17:28:54 -0600
commit2fe787ba4db420f5b08573d77e35cfaa0d7a0793 (patch)
treeb9c1264b56d713a6df9b029606f87d824f3a3d20 /lib9p/9p.c
parentb683e779ef83b88f6ffc503a1d1a4f3ec25a5cfa (diff)
wip srv
Diffstat (limited to 'lib9p/9p.c')
-rw-r--r--lib9p/9p.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/lib9p/9p.c b/lib9p/9p.c
index fffef31..0ab940c 100644
--- a/lib9p/9p.c
+++ b/lib9p/9p.c
@@ -13,21 +13,6 @@
#include "internal.h"
-enum lib9p_version lib9p_ctx_version(struct lib9p_ctx *ctx) {
- assert(ctx);
- return ctx->version;
-}
-
-uint32_t lib9p_ctx_max_msg_size(struct lib9p_ctx *ctx) {
- assert(ctx);
- return ctx->max_msg_size;
-}
-
-bool lib9p_ctx_has_error(struct lib9p_ctx *ctx) {
- assert(ctx);
- return ctx->err_num || ctx->err_msg[0];
-}
-
int lib9p_error(struct lib9p_ctx *ctx, uint32_t linux_errno, char const *msg) {
strncpy(ctx->err_msg, msg, sizeof(ctx->err_msg));
ctx->err_msg[sizeof(ctx->err_msg)-1] = '\0';