aboutsummaryrefslogtreecommitdiffstats
path: root/example/passthrough_ll.c
diff options
context:
space:
mode:
Diffstat (limited to 'example/passthrough_ll.c')
-rw-r--r--example/passthrough_ll.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/example/passthrough_ll.c b/example/passthrough_ll.c
index 9d38a7f..da9de53 100644
--- a/example/passthrough_ll.c
+++ b/example/passthrough_ll.c
@@ -35,7 +35,7 @@
*/
#define _GNU_SOURCE
-#define FUSE_USE_VERSION 34
+#define FUSE_USE_VERSION FUSE_MAKE_VERSION(3, 12)
#include <fuse_lowlevel.h>
#include <unistd.h>
@@ -1198,7 +1198,7 @@ int main(int argc, char *argv[])
struct fuse_args args = FUSE_ARGS_INIT(argc, argv);
struct fuse_session *se;
struct fuse_cmdline_opts opts;
- struct fuse_loop_config config;
+ struct fuse_loop_config *config;
struct lo_data lo = { .debug = 0,
.writeback = 0 };
int ret = -1;
@@ -1304,9 +1304,12 @@ int main(int argc, char *argv[])
if (opts.singlethread)
ret = fuse_session_loop(se);
else {
- config.clone_fd = opts.clone_fd;
- config.max_idle_threads = opts.max_idle_threads;
- ret = fuse_session_loop_mt(se, &config);
+ config = fuse_loop_cfg_create();
+ fuse_loop_cfg_set_clone_fd(config, opts.clone_fd);
+ fuse_loop_cfg_set_max_threads(config, opts.max_threads);
+ ret = fuse_session_loop_mt(se, config);
+ fuse_loop_cfg_destroy(config);
+ config = NULL;
}
fuse_session_unmount(se);