aboutsummaryrefslogtreecommitdiffstats
path: root/include/fuse_compat.h
diff options
context:
space:
mode:
authorMiklos Szeredi <miklos@szeredi.hu>2006-09-22 19:30:17 +0000
committerMiklos Szeredi <miklos@szeredi.hu>2006-09-22 19:30:17 +0000
commiteafdf42a69455f49fc8f935270fec7550bbc4e7c (patch)
tree01903a422a219c091b4a9976721c3b6c0d1f009c /include/fuse_compat.h
parent026e0f46a9ce978b91d0ebcdd0838a3e6687d60f (diff)
downloadlibfuse-eafdf42a69455f49fc8f935270fec7550bbc4e7c.tar.gz
fix compat bugs in lowlevel interface
Diffstat (limited to 'include/fuse_compat.h')
-rw-r--r--include/fuse_compat.h28
1 files changed, 10 insertions, 18 deletions
diff --git a/include/fuse_compat.h b/include/fuse_compat.h
index c896373..c8393e4 100644
--- a/include/fuse_compat.h
+++ b/include/fuse_compat.h
@@ -67,14 +67,6 @@ void fuse_teardown_compat25(struct fuse *fuse, int fd, char *mountpoint);
#ifndef __FreeBSD__
#include <sys/statfs.h>
-struct fuse_file_info_compat22 {
- int flags;
- unsigned long fh;
- int writepage;
- unsigned int direct_io : 1;
- unsigned int keep_cache : 1;
-};
-
struct fuse_operations_compat22 {
int (*getattr) (const char *, struct stat *);
int (*readlink) (const char *, char *, size_t);
@@ -90,24 +82,24 @@ struct fuse_operations_compat22 {
int (*chown) (const char *, uid_t, gid_t);
int (*truncate) (const char *, off_t);
int (*utime) (const char *, struct utimbuf *);
- int (*open) (const char *, struct fuse_file_info_compat22 *);
+ int (*open) (const char *, struct fuse_file_info_compat *);
int (*read) (const char *, char *, size_t, off_t,
- struct fuse_file_info_compat22 *);
+ struct fuse_file_info_compat *);
int (*write) (const char *, const char *, size_t, off_t,
- struct fuse_file_info_compat22 *);
+ struct fuse_file_info_compat *);
int (*statfs) (const char *, struct statfs *);
- int (*flush) (const char *, struct fuse_file_info_compat22 *);
- int (*release) (const char *, struct fuse_file_info_compat22 *);
- int (*fsync) (const char *, int, struct fuse_file_info_compat22 *);
+ int (*flush) (const char *, struct fuse_file_info_compat *);
+ int (*release) (const char *, struct fuse_file_info_compat *);
+ int (*fsync) (const char *, int, struct fuse_file_info_compat *);
int (*setxattr) (const char *, const char *, const char *, size_t, int);
int (*getxattr) (const char *, const char *, char *, size_t);
int (*listxattr) (const char *, char *, size_t);
int (*removexattr) (const char *, const char *);
- int (*opendir) (const char *, struct fuse_file_info_compat22 *);
+ int (*opendir) (const char *, struct fuse_file_info_compat *);
int (*readdir) (const char *, void *, fuse_fill_dir_t, off_t,
- struct fuse_file_info_compat22 *);
- int (*releasedir) (const char *, struct fuse_file_info_compat22 *);
- int (*fsyncdir) (const char *, int, struct fuse_file_info_compat22 *);
+ struct fuse_file_info_compat *);
+ int (*releasedir) (const char *, struct fuse_file_info_compat *);
+ int (*fsyncdir) (const char *, int, struct fuse_file_info_compat *);
void *(*init) (void);
void (*destroy) (void *);
};