aboutsummaryrefslogtreecommitdiff
path: root/include/9pclient.h
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2005-01-04 21:21:32 +0000
committerrsc <devnull@localhost>2005-01-04 21:21:32 +0000
commit5ba841dffa1f6cda712ebcff27c55c9d0a672c67 (patch)
tree53b6bbf68aabe02f01549c08425c8c797ef3e96f /include/9pclient.h
parent94b5e3ff1dd81855814b66a88a2f8a9b984e90dd (diff)
downloadplan9port-5ba841dffa1f6cda712ebcff27c55c9d0a672c67.tar.gz
plan9port-5ba841dffa1f6cda712ebcff27c55c9d0a672c67.tar.bz2
plan9port-5ba841dffa1f6cda712ebcff27c55c9d0a672c67.zip
more include files.
Diffstat (limited to 'include/9pclient.h')
-rw-r--r--include/9pclient.h42
1 files changed, 42 insertions, 0 deletions
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