diff options
Diffstat (limited to 'lib9p/srv.h')
-rw-r--r-- | lib9p/srv.h | 16 |
1 files changed, 16 insertions, 0 deletions
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_ */ |