aboutsummaryrefslogtreecommitdiffstats
path: root/example
diff options
context:
space:
mode:
Diffstat (limited to 'example')
-rw-r--r--example/fusexmp.c40
-rw-r--r--example/hello.c24
-rw-r--r--example/null.c26
3 files changed, 30 insertions, 60 deletions
diff --git a/example/fusexmp.c b/example/fusexmp.c
index 0926ff8..7af6c04 100644
--- a/example/fusexmp.c
+++ b/example/fusexmp.c
@@ -269,26 +269,26 @@ static int xmp_fsync(const char *path, int isdatasync)
}
static struct fuse_operations xmp_oper = {
- getattr: xmp_getattr,
- readlink: xmp_readlink,
- getdir: xmp_getdir,
- mknod: xmp_mknod,
- mkdir: xmp_mkdir,
- symlink: xmp_symlink,
- unlink: xmp_unlink,
- rmdir: xmp_rmdir,
- rename: xmp_rename,
- link: xmp_link,
- chmod: xmp_chmod,
- chown: xmp_chown,
- truncate: xmp_truncate,
- utime: xmp_utime,
- open: xmp_open,
- read: xmp_read,
- write: xmp_write,
- statfs: xmp_statfs,
- release: xmp_release,
- fsync: xmp_fsync
+ .getattr = xmp_getattr,
+ .readlink = xmp_readlink,
+ .getdir = xmp_getdir,
+ .mknod = xmp_mknod,
+ .mkdir = xmp_mkdir,
+ .symlink = xmp_symlink,
+ .unlink = xmp_unlink,
+ .rmdir = xmp_rmdir,
+ .rename = xmp_rename,
+ .link = xmp_link,
+ .chmod = xmp_chmod,
+ .chown = xmp_chown,
+ .truncate = xmp_truncate,
+ .utime = xmp_utime,
+ .open = xmp_open,
+ .read = xmp_read,
+ .write = xmp_write,
+ .statfs = xmp_statfs,
+ .release = xmp_release,
+ .fsync = xmp_fsync
};
diff --git a/example/hello.c b/example/hello.c
index 6b461d0..7466b9f 100644
--- a/example/hello.c
+++ b/example/hello.c
@@ -68,26 +68,10 @@ static int hello_read(const char *path, char *buf, size_t size, off_t offset)
}
static struct fuse_operations hello_oper = {
- getattr: hello_getattr,
- readlink: NULL,
- getdir: hello_getdir,
- mknod: NULL,
- mkdir: NULL,
- symlink: NULL,
- unlink: NULL,
- rmdir: NULL,
- rename: NULL,
- link: NULL,
- chmod: NULL,
- chown: NULL,
- truncate: NULL,
- utime: NULL,
- open: hello_open,
- read: hello_read,
- write: NULL,
- statfs: NULL,
- release: NULL,
- fsync: NULL
+ .getattr = hello_getattr,
+ .getdir = hello_getdir,
+ .open = hello_open,
+ .read = hello_read,
};
int main(int argc, char *argv[])
diff --git a/example/null.c b/example/null.c
index ca79dc4..91f2cda 100644
--- a/example/null.c
+++ b/example/null.c
@@ -71,26 +71,12 @@ static int null_statfs(struct fuse_statfs *st)
}
static struct fuse_operations null_oper = {
- getattr: null_getattr,
- readlink: NULL,
- getdir: NULL,
- mknod: NULL,
- mkdir: NULL,
- symlink: NULL,
- unlink: NULL,
- rmdir: NULL,
- rename: NULL,
- link: NULL,
- chmod: NULL,
- chown: NULL,
- truncate: null_truncate,
- utime: NULL,
- open: null_open,
- read: null_read,
- write: null_write,
- statfs: null_statfs,
- release: NULL,
- fsync: NULL
+ .getattr = null_getattr,
+ .truncate = null_truncate,
+ .open = null_open,
+ .read = null_read,
+ .write = null_write,
+ .statfs = null_statfs,
};
int main(int argc, char *argv[])