From 5ba841dffa1f6cda712ebcff27c55c9d0a672c67 Mon Sep 17 00:00:00 2001 From: rsc Date: Tue, 4 Jan 2005 21:21:32 +0000 Subject: more include files. --- include/9pclient.h | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 include/9pclient.h (limited to 'include/9pclient.h') diff --git a/include/9pclient.h b/include/9pclient.h new file mode 100644 index 00000000..8a0d342f --- /dev/null +++ b/include/9pclient.h @@ -0,0 +1,42 @@ +#ifndef _9PCLIENT_H_ +#define _9PCLIENT_H_ 1 +#ifdef __cplusplus +extern "C" { +#endif + +AUTOLIB(9pclient) +/* + * Simple user-level 9P client. + */ + +typedef struct CFsys CFsys; +typedef struct CFid CFid; + +CFsys *fsinit(int); +CFsys *fsmount(int, char*); + +int fsversion(CFsys*, int, char*, int); +CFid *fsauth(CFsys*, char*); +CFid *fsattach(CFsys*, CFid*, char*, char*); +CFid *fsopen(CFsys*, char*, int); +int fsopenfd(CFsys*, char*, int); +long fsread(CFid*, void*, long); +long fsreadn(CFid*, void*, long); +long fswrite(CFid*, void*, long); +void fsclose(CFid*); +void fsunmount(CFsys*); +struct Dir; /* in case there's no lib9.h */ +long fsdirread(CFid*, struct Dir**); +long fsdirreadall(CFid*, struct Dir**); +struct Dir *fsdirstat(CFsys*, char*); +struct Dir *fsdirfstat(CFid*); +int fsdirwstat(CFsys*, char*, struct Dir*); +int fsdirfwstat(CFid*, struct Dir*); +CFid *fsroot(CFsys*); +void fssetroot(CFsys*, CFid*); +CFsys *nsmount(char*, char*); + +#ifdef __cplusplus +} +#endif +#endif -- cgit v1.2.3