aboutsummaryrefslogtreecommitdiffstats
path: root/example/notify_inval_entry.c
diff options
context:
space:
mode:
authorBernd Schubert <bschubert@ddn.com>2024-04-20 22:56:13 +0200
committerGitHub <noreply@github.com>2024-04-20 22:56:13 +0200
commita8f1ae35af664bfaff0ce57be4f81b4e0f20cb10 (patch)
tree0905fee6b9b9fbe504a42003014d976368ea77ca /example/notify_inval_entry.c
parent285da329ea946255d727f7340944d8a555eba850 (diff)
downloadlibfuse-a8f1ae35af664bfaff0ce57be4f81b4e0f20cb10.tar.gz
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.
Diffstat (limited to 'example/notify_inval_entry.c')
-rw-r--r--example/notify_inval_entry.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/example/notify_inval_entry.c b/example/notify_inval_entry.c
index 0d085df..83b24d2 100644
--- a/example/notify_inval_entry.c
+++ b/example/notify_inval_entry.c
@@ -307,7 +307,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;
pthread_t updater;
int ret = -1;
@@ -362,9 +362,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);