aboutsummaryrefslogtreecommitdiffstats
path: root/lib/fuse_i.h
diff options
context:
space:
mode:
authorBernd Schubert <bernd.schubert@fastmail.fm>2024-05-13 12:32:06 +0200
committerGitHub <noreply@github.com>2024-05-13 12:32:06 +0200
commit58f85bfa9b7dca9a216cd0bb4e38e9cdf4b661da (patch)
tree6b731982629b96315c70bca87280141e3240fcd7 /lib/fuse_i.h
parent2bdec0bc22ce39b307e299ee9ec19d1c58b640de (diff)
downloadlibfuse-58f85bfa9b7dca9a216cd0bb4e38e9cdf4b661da.tar.gz
Add in the libfuse version a program was compiled with (#942)
The API stays the same, the libfuse version comes from inlined functions, which are defined fuse_lowlevel.h and fuse.h. As these inlined functions are defined in the header files they get added into the application, similar as if these were preprocessor macros. Macro vs inlined function is then just a style issue - I personally prefer the latter. fuse_session_new() -> static inlinei, in the application _fuse_session_new -> inside of libfuse fuse_new() -> static inline, in the application _fuse_new() -> inside of libfuse Note: Entirely untested is the fuse 30 api - we need a test for it. And we do not have any ABI tests at all. Signed-off-by: Bernd Schubert <bernd.schubert@fastmail.fm>
Diffstat (limited to 'lib/fuse_i.h')
-rw-r--r--lib/fuse_i.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/fuse_i.h b/lib/fuse_i.h
index 74cfe36..7a2ae04 100644
--- a/lib/fuse_i.h
+++ b/lib/fuse_i.h
@@ -65,6 +65,11 @@ struct fuse_session {
struct fuse_notify_req notify_list;
size_t bufsize;
int error;
+
+ /* This is useful if any kind of ABI incompatibility is found at
+ * a later version, to 'fix' it at run time.
+ */
+ struct libfuse_version version;
};
struct fuse_chan {