diff options
author | Miklos Szeredi <miklos@szeredi.hu> | 2004-11-26 12:15:06 +0000 |
---|---|---|
committer | Miklos Szeredi <miklos@szeredi.hu> | 2004-11-26 12:15:06 +0000 |
commit | fb28c5ebe1efdc3e3b125aad1a19f1a240519345 (patch) | |
tree | cfe63db63bc515c36886dad956ee8c171167d496 /example/hello.c | |
parent | 97de5118b5c240063f634e9fa41998dc72708b56 (diff) | |
download | android_external_fuse-fb28c5ebe1efdc3e3b125aad1a19f1a240519345.tar.gz android_external_fuse-fb28c5ebe1efdc3e3b125aad1a19f1a240519345.tar.bz2 android_external_fuse-fb28c5ebe1efdc3e3b125aad1a19f1a240519345.zip |
API change
Diffstat (limited to 'example/hello.c')
-rw-r--r-- | example/hello.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/example/hello.c b/example/hello.c index 5065fb7..75196ff 100644 --- a/example/hello.c +++ b/example/hello.c @@ -47,20 +47,22 @@ static int hello_getdir(const char *path, fuse_dirh_t h, fuse_dirfil_t filler) return 0; } -static int hello_open(const char *path, int flags) +static int hello_open(const char *path, struct fuse_file_info *fi) { if(strcmp(path, hello_path) != 0) return -ENOENT; - if((flags & 3) != O_RDONLY) + if((fi->flags & 3) != O_RDONLY) return -EACCES; return 0; } -static int hello_read(const char *path, char *buf, size_t size, off_t offset) +static int hello_read(const char *path, char *buf, size_t size, off_t offset, + struct fuse_file_info *fi) { size_t len; + (void) fi; if(strcmp(path, hello_path) != 0) return -ENOENT; |