From 71e1a86a033c380f85dd300d788af63bfef25bab Mon Sep 17 00:00:00 2001 From: "Luke T. Shumaker" Date: Thu, 26 Sep 2024 19:36:54 -0600 Subject: wip reorg --- lib9p/srv.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 lib9p/srv.h (limited to 'lib9p/srv.h') diff --git a/lib9p/srv.h b/lib9p/srv.h new file mode 100644 index 0000000..e3623ed --- /dev/null +++ b/lib9p/srv.h @@ -0,0 +1,16 @@ +#ifndef _NET9P_H_ +#define _NET9P_H_ + +#include "coroutine.h" + +struct p9_srvreq; + +struct p9_srv { + int sockfd; + cr_chan_t(p9_srvreq *) reqch; +}; + +COROUTINE p9_srv_read_cr(void *_srv); +COROUTINE p9_srv_write_cr(void *_srv); + +#endif /* _NET9P_H_ */ -- cgit v1.2.3-2-g168b