From a8f1ae35af664bfaff0ce57be4f81b4e0f20cb10 Mon Sep 17 00:00:00 2001 From: Bernd Schubert Date: Sat, 20 Apr 2024 22:56:13 +0200 Subject: example/: Convert all fuse_session_loop_mt users to 3.12 API (#931) Convert all the remaining users of fuse_session_loop_mt() to the new 3.12 config api. --- example/hello_ll.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'example/hello_ll.c') diff --git a/example/hello_ll.c b/example/hello_ll.c index 803528d..10f4b4a 100644 --- a/example/hello_ll.c +++ b/example/hello_ll.c @@ -217,7 +217,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; int ret = -1; if (fuse_parse_cmdline(&args, &opts) != 0) @@ -259,9 +259,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); -- cgit v1.2.3