diff options
author | Miklos Szeredi <miklos@szeredi.hu> | 2004-11-08 14:48:52 +0000 |
---|---|---|
committer | Miklos Szeredi <miklos@szeredi.hu> | 2004-11-08 14:48:52 +0000 |
commit | 8fb48feb5024d2aa9083690e472f1b1072cb8169 (patch) | |
tree | f5822084907940cb656f271ea85dfebbfc717795 /example | |
parent | ac36117c33b32d69a335f9c99091b09c2da07616 (diff) | |
download | libfuse-8fb48feb5024d2aa9083690e472f1b1072cb8169.tar.gz |
getdir related API change
Diffstat (limited to 'example')
-rw-r--r-- | example/fusexmp.c | 4 | ||||
-rw-r--r-- | example/hello.c | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/example/fusexmp.c b/example/fusexmp.c index 9b86a4c..57045be 100644 --- a/example/fusexmp.c +++ b/example/fusexmp.c @@ -49,7 +49,7 @@ static int xmp_readlink(const char *path, char *buf, size_t size) } -static int xmp_getdir(const char *path, fuse_dirh_t h, fuse_dirfil_t filler) +static int xmp_getdir(const char *path, fuse_dirh_t h, fuse_dirfil2_t filler) { DIR *dp; struct dirent *de; @@ -60,7 +60,7 @@ static int xmp_getdir(const char *path, fuse_dirh_t h, fuse_dirfil_t filler) return -errno; while((de = readdir(dp)) != NULL) { - res = filler(h, de->d_name, de->d_type); + res = filler(h, de->d_name, de->d_type, de->d_ino); if(res != 0) break; } diff --git a/example/hello.c b/example/hello.c index c7a0c1c..37020b2 100644 --- a/example/hello.c +++ b/example/hello.c @@ -35,14 +35,14 @@ static int hello_getattr(const char *path, struct stat *stbuf) return res; } -static int hello_getdir(const char *path, fuse_dirh_t h, fuse_dirfil_t filler) +static int hello_getdir(const char *path, fuse_dirh_t h, fuse_dirfil2_t filler) { if(strcmp(path, "/") != 0) return -ENOENT; - filler(h, ".", 0); - filler(h, "..", 0); - filler(h, hello_path + 1, 0); + filler(h, ".", 0, 0); + filler(h, "..", 0, 0); + filler(h, hello_path + 1, 0, 0); return 0; } |