From fb28c5ebe1efdc3e3b125aad1a19f1a240519345 Mon Sep 17 00:00:00 2001 From: Miklos Szeredi Date: Fri, 26 Nov 2004 12:15:06 +0000 Subject: API change --- example/hello.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'example/hello.c') 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; -- cgit v1.2.3