summaryrefslogtreecommitdiffstats
path: root/src/filecache.h
blob: 90972b05ee35e0d8ab6aab3fe2b3c18a1f79af8a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef foofilecachehfoo
#define foofilecachehfoo

#include <sys/types.h>

void* file_cache_open(const char *path, int flags);
void* file_cache_get(const char *path);
void file_cache_unref(void *f);

int file_cache_close(void *f);

int file_cache_read(void *f, char *buf, size_t size, off_t offset);
int file_cache_write(void *f, const char *buf, size_t size, off_t offset);
int file_cache_truncate(void *f, off_t s);
int file_cache_sync(void *f);
int file_cache_close_all(void);


#endif