use larger string heap
[rrq/fuse_xattrs.git] / passthrough.h
1 /*
2   fuse_xattrs - Add xattrs support using sidecar files
3
4   Copyright (C) 2016  Felipe Barriga Richards <felipe {at} felipebarriga.cl>
5
6   Based on passthrough.c (libfuse example)
7
8   This program can be distributed under the terms of the GNU GPL.
9   See the file COPYING.
10 */
11
12 #ifdef __APPLE__
13     #include <osxfuse/fuse.h>
14 #else
15     #include <fuse.h>
16 #endif
17
18 int xmp_getattr(const char *path, struct stat *stbuf);
19 int xmp_access(const char *path, int mask);
20 int xmp_readlink(const char *path, char *buf, size_t size);
21 int xmp_readdir(const char *path, void *buf, fuse_fill_dir_t filler, off_t offset, struct fuse_file_info *fi);
22 int xmp_mknod(const char *path, mode_t mode, dev_t rdev);
23 int xmp_mkdir(const char *path, mode_t mode);
24 int xmp_unlink(const char *path);
25 int xmp_rmdir(const char *path);
26 int xmp_symlink(const char *from, const char *to);
27 int xmp_rename(const char *from, const char *to);
28 int xmp_link(const char *from, const char *to);
29 int xmp_chmod(const char *path, mode_t mode);
30 int xmp_chown(const char *path, uid_t uid, gid_t gid);
31 int xmp_truncate(const char *path, off_t size);
32 int xmp_utimens(const char *path, const struct timespec ts[2]);
33 int xmp_open(const char *path, struct fuse_file_info *fi);
34 int xmp_read(const char *path, char *buf, size_t size, off_t offset, struct fuse_file_info *fi);
35 int xmp_write(const char *path, const char *buf, size_t size, off_t offset, struct fuse_file_info *fi);
36 int xmp_statfs(const char *path, struct statvfs *stbuf);
37 int xmp_release(const char *path, struct fuse_file_info *fi);
38 int xmp_fsync(const char *path, int isdatasync, struct fuse_file_info *fi);
39 int xmp_fallocate(const char *path, int mode, off_t offset, off_t length, struct fuse_file_info *fi);
40