From 777663953382925c7403f0560c28ec9bbd14d7be Mon Sep 17 00:00:00 2001 From: y Date: Mon, 14 Nov 2022 11:55:39 +0100 Subject: libfuse custom communication interface libfuse can now be used without having a mount interface. --- lib/fuse_lowlevel.c | 4 ++++ lib/fuse_versionscript | 1 + 2 files changed, 5 insertions(+) (limited to 'lib') diff --git a/lib/fuse_lowlevel.c b/lib/fuse_lowlevel.c index e82cd9e..b6ffbd9 100644 --- a/lib/fuse_lowlevel.c +++ b/lib/fuse_lowlevel.c @@ -3009,6 +3009,10 @@ out1: return NULL; } +void fuse_custom_session_fd(struct fuse_session *se, int fd) { + se->fd = fd; +} + int fuse_session_mount(struct fuse_session *se, const char *mountpoint) { int fd; diff --git a/lib/fuse_versionscript b/lib/fuse_versionscript index 7e50e75..f57c505 100644 --- a/lib/fuse_versionscript +++ b/lib/fuse_versionscript @@ -39,6 +39,7 @@ FUSE_3.0 { fuse_session_new; fuse_main_real; fuse_mount; + fuse_custom_session_fd; fuse_session_mount; fuse_new; fuse_opt_insert_arg; -- cgit v1.2.3