aboutsummaryrefslogtreecommitdiffstats
path: root/plpfuse/plpfuse.h
diff options
context:
space:
mode:
authorReuben Thomas <rrt@sc3d.org>2007-12-13 23:40:55 +0000
committerReuben Thomas <rrt@sc3d.org>2007-12-13 23:40:55 +0000
commit270a30c1a350d791053937c72e6ce6cc63a64088 (patch)
tree7226a44551e3f093b43b00eea212ca2b758e46cd /plpfuse/plpfuse.h
parent2aea4578fe73119387d81f9c67e8221b5ad48eea (diff)
downloadplptools-270a30c1a350d791053937c72e6ce6cc63a64088.tar.gz
plptools-270a30c1a350d791053937c72e6ce6cc63a64088.tar.bz2
plptools-270a30c1a350d791053937c72e6ce6cc63a64088.zip
Replace plpnfsd with plpfuse.
Other minor simplifications to the build system.
Diffstat (limited to 'plpfuse/plpfuse.h')
-rw-r--r--plpfuse/plpfuse.h52
1 files changed, 52 insertions, 0 deletions
diff --git a/plpfuse/plpfuse.h b/plpfuse/plpfuse.h
new file mode 100644
index 0000000..c36d717
--- /dev/null
+++ b/plpfuse/plpfuse.h
@@ -0,0 +1,52 @@
+/* $Id$
+ *
+ */
+
+#ifndef _plpfuse_h_
+#define _plpfuse_h_
+
+#include <fuse.h>
+
+typedef struct p_inode {
+ int inode;
+ char *name;
+ struct p_inode *nextnam, *nextnum;
+} p_inode;
+
+/**
+ * Description of a Psion-Device
+ */
+typedef struct p_device {
+ char *name; /* Volume-Name */
+ char letter; /* Drive-Letter */
+ long attrib; /* Device-Attribs */
+ long total; /* Total capacity in bytes */
+ long free; /* Free space in bytes */
+ struct p_device *next;
+} device;
+
+/*
+ * Description of a Psion-File/Dir
+ */
+typedef struct p_dentry
+{
+ char *name;
+ long time;
+ long attr;
+ long size;
+ long links;
+ struct p_dentry *next;
+} dentry;
+
+extern int debug;
+
+extern int debuglog(char *fmt, ...);
+extern int errorlog(char *fmt, ...);
+extern int infolog(char *fmt, ...);
+
+#define BLOCKSIZE 512
+#define FID 7 /* File system id */
+
+#endif
+
+extern struct fuse_operations plp_oper;