Code

add boilerplate licenses in source files
[fusedav.git] / src / filecache.h
1 #ifndef foofilecachehfoo
2 #define foofilecachehfoo
4 /* $Id$ */
6 /***
7   This file is part of fusedav.
9   fusedav is free software; you can redistribute it and/or modify it
10   under the terms of the GNU General Public License as published by
11   the Free Software Foundation; either version 2 of the License, or
12   (at your option) any later version.
13   
14   fusedav is distributed in the hope that it will be useful, but WITHOUT
15   ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
16   or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public
17   License for more details.
18   
19   You should have received a copy of the GNU General Public License
20   along with fusedav; if not, write to the Free Software Foundation,
21   Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22 ***/
24 #include <sys/types.h>
26 void* file_cache_open(const char *path, int flags);
27 void* file_cache_get(const char *path);
28 void file_cache_unref(void *f);
30 int file_cache_close(void *f);
32 int file_cache_read(void *f, char *buf, size_t size, off_t offset);
33 int file_cache_write(void *f, const char *buf, size_t size, off_t offset);
34 int file_cache_truncate(void *f, off_t s);
35 int file_cache_sync(void *f);
36 int file_cache_close_all(void);
39 #endif