aboutsummaryrefslogtreecommitdiffstats
path: root/include/fuse.h
diff options
context:
space:
mode:
authorMiklos Szeredi <miklos@szeredi.hu>2001-10-28 19:44:14 +0000
committerMiklos Szeredi <miklos@szeredi.hu>2001-10-28 19:44:14 +0000
commit85c74fcdfd9e67d411c3e1734b34effd0d73fa4d (patch)
tree908e39d3e0b84bd733261cdde16ef6ae707f2352 /include/fuse.h
parent90d8bef61c8c40472ddfb1aafeeb6473ec51a053 (diff)
downloadlibfuse-85c74fcdfd9e67d411c3e1734b34effd0d73fa4d.tar.gz
x
Diffstat (limited to 'include/fuse.h')
-rw-r--r--include/fuse.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/include/fuse.h b/include/fuse.h
new file mode 100644
index 0000000..6b1a151
--- /dev/null
+++ b/include/fuse.h
@@ -0,0 +1,37 @@
+/*
+ FUSE: Filesystem in Userspace
+ Copyright (C) 2001 Miklos Szeredi (mszeredi@inf.bme.hu)
+
+ This program can be distributed under the terms of the GNU GPL.
+ See the file COPYING.
+*/
+
+/* This file defines the library interface of FUSE */
+
+#include <sys/types.h>
+#include <sys/stat.h>
+
+struct fuse;
+struct fuse_dh;
+
+typedef int (*dirfiller_t) (struct fuse_dh *, const char *, int type);
+
+
+struct fuse_operations {
+ int (*getattr) (const char *path, struct stat *stbuf);
+ int (*readlink) (const char *path, char *buf, size_t size);
+ int (*mknod) (const char *path, int mode, int rdev);
+ int (*getdir) (const char *path, struct fuse_dh *h, dirfiller_t filler);
+};
+
+struct fuse *fuse_new();
+
+int fuse_mount(struct fuse *f, const char *dir);
+
+void fuse_set_operations(struct fuse *f, const struct fuse_operations *op);
+
+void fuse_loop(struct fuse *f);
+
+int fuse_unmount(struct fuse *f);
+
+void fuse_destroy(struct fuse *f);