summaryrefslogtreecommitdiff
path: root/cmd/srv9p
diff options
context:
space:
mode:
authorLuke T. Shumaker <lukeshu@lukeshu.com>2024-10-09 17:01:06 -0600
committerLuke T. Shumaker <lukeshu@lukeshu.com>2024-10-09 17:01:06 -0600
commitbb5afed7a0eeaf361be1e29b3a3ab8ace2865b39 (patch)
treed311d7c8a658079ee5280d5d057203a5d501091c /cmd/srv9p
parentcb8893dd08b7b359f45ef225acd2f6e103d38bba (diff)
lib9p: finish refactor
Diffstat (limited to 'cmd/srv9p')
-rw-r--r--cmd/srv9p/config/config.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/cmd/srv9p/config/config.h b/cmd/srv9p/config/config.h
index ead97e0..96aba1d 100644
--- a/cmd/srv9p/config/config.h
+++ b/cmd/srv9p/config/config.h
@@ -4,9 +4,12 @@
* SPDX-Licence-Identifier: AGPL-3.0-or-later
*/
+#ifndef _CONFIG_H_
+#define _CONFIG_H_
+
#define CONFIG_NETIO_NUM_CONNS 8
-# define CONFIG_9P_PORT 564
+#define CONFIG_9P_PORT 564
/**
* This max-msg-size is sized so that a Twrite message can return
* 8KiB of data.
@@ -34,6 +37,8 @@
#define CONFIG_9P_MAX_FIDS 16
#define CONFIG_9P_MAX_REQS 2
#define CONFIG_9P_MAX_ERR_SIZE 128 /* 128 is what Plan 9 4e uses */
+#define CONFIG_9P_ENABLE_9P2000_u
+#define CONFIG_9P_ENABLE_9P2000_e
#define CONFIG_COROUTINE_DEFAULT_STACK_SIZE (32*1024)
#define CONFIG_COROUTINE_MEASURE_STACK 1 /* bool */
@@ -44,3 +49,5 @@
1 /* usb_keyboard */ +\
CONFIG_NETIO_NUM_CONNS /* accept+read */ +\
(CONFIG_9P_MAX_REQS*CONFIG_NETIO_NUM_CONNS) /* work+write */ )
+
+#endif /* _CONFIG_H_ */