Code

Inital commit
[fusedav.git] / src / filecache.h
1 #ifndef foofilecachehfoo
2 #define foofilecachehfoo
4 #include <sys/types.h>
6 void* file_cache_open(const char *path, int flags);
7 void* file_cache_get(const char *path);
8 void file_cache_unref(void *f);
10 int file_cache_close(void *f);
12 int file_cache_read(void *f, char *buf, size_t size, off_t offset);
13 int file_cache_write(void *f, const char *buf, size_t size, off_t offset);
14 int file_cache_truncate(void *f, off_t s);
15 int file_cache_sync(void *f);
16 int file_cache_close_all(void);
19 #endif