aboutsummaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorMiklos Szeredi <miklos@szeredi.hu>2005-02-07 16:12:46 +0000
committerMiklos Szeredi <miklos@szeredi.hu>2005-02-07 16:12:46 +0000
commit386a7f67abe051067887a9d84443eccf353dbb2c (patch)
treecf3d00e6024b2e8544462ee13aa82a9ca7654737 /cache.h
parentcdc0da79563f9b64de219db3a891180e859406f1 (diff)
downloadsshfs-386a7f67abe051067887a9d84443eccf353dbb2c.tar
sshfs-386a7f67abe051067887a9d84443eccf353dbb2c.tar.gz
sshfs-386a7f67abe051067887a9d84443eccf353dbb2c.tar.bz2
sshfs-386a7f67abe051067887a9d84443eccf353dbb2c.zip
cleanup
Diffstat (limited to 'cache.h')
-rw-r--r--cache.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/cache.h b/cache.h
new file mode 100644
index 0000000..1466a1b
--- /dev/null
+++ b/cache.h
@@ -0,0 +1,21 @@
+/*
+ Caching file system proxy
+ Copyright (C) 2004 Miklos Szeredi <miklos@szeredi.hu>
+
+ This program can be distributed under the terms of the GNU GPL.
+ See the file COPYING.
+*/
+
+#include <fuse.h>
+
+typedef struct fuse_cache_dirhandle *fuse_cache_dirh_t;
+typedef int (*fuse_cache_dirfil_t) (fuse_cache_dirh_t h, const char *name,
+ const struct stat *stbuf);
+
+struct fuse_cache_operations {
+ struct fuse_operations oper;
+ int (*cache_getdir) (const char *, fuse_cache_dirh_t, fuse_cache_dirfil_t);
+
+};
+
+struct fuse_operations *cache_init(struct fuse_cache_operations *oper);