aboutsummaryrefslogtreecommitdiffstats
path: root/lib/fuse.c
diff options
context:
space:
mode:
authorBernd Schubert <bernd@bsbernd.com>2025-01-04 20:29:18 +0100
committerBernd Schubert <bernd@bsbernd.com>2025-02-10 16:56:45 +0100
commit0dd19282594430fe2e2b3aa7f2def466675dcadf (patch)
treeec1b8405451a8d6189656d4b8dd5925b302441ba /lib/fuse.c
parent818e29b467e73a68dc01d11fef747cbcd7b59378 (diff)
downloadlibfuse-0dd19282594430fe2e2b3aa7f2def466675dcadf.tar.gz
Avoid global declarion of internal functions that are new in 3.17
_fuse_new() is not supposed to be called by external users outside of internal functions or static inlined functions. This also removes several functions from lib/fuse_versionscript which where added and exported by commit 58f85bfa9b7d ("Add in the libfuse version a program...) as these are libfuse internal only. Signed-off-by: Bernd Schubert <bernd@bsbernd.com>
Diffstat (limited to 'lib/fuse.c')
-rw-r--r--lib/fuse.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/fuse.c b/lib/fuse.c
index aa5c611..8fbc035 100644
--- a/lib/fuse.c
+++ b/lib/fuse.c
@@ -5009,6 +5009,12 @@ struct fuse *_fuse_new_317(struct fuse_args *args,
f->conf.readdir_ino = 1;
#endif
+ /* not declared globally, to restrict usage of this function */
+ struct fuse_session *_fuse_session_new(
+ struct fuse_args *args, const struct fuse_lowlevel_ops *op,
+ size_t op_size, struct libfuse_version *version,
+ void *userdata);
+
f->se = _fuse_session_new(args, &llop, sizeof(llop), version, f);
if (f->se == NULL)
goto out_free_fs;