diff options
author | Bernd Schubert <bernd@bsbernd.com> | 2025-01-04 16:08:30 +0100 |
---|---|---|
committer | Bernd Schubert <bernd@bsbernd.com> | 2025-01-06 13:40:18 +0100 |
commit | 0636f1fd5bf4c88f0fe04166c906a95a53837c35 (patch) | |
tree | 300aeb3d7962cd8252d0c3725f5e80ab02574d5c | |
parent | 8d34e367f76cb5d28671dd992e6a568b53845b3a (diff) | |
download | libfuse-0636f1fd5bf4c88f0fe04166c906a95a53837c35.tar.gz |
Fix fuse_main_real symbols
Commit 58f85bfa9b7d ("Add in the libfuse version a program...")
forgot to add a fuse_main_real function for libfuse compilations
that are not symboled. That is now added in compat.c.
Signed-off-by: Bernd Schubert <bernd@bsbernd.com>
-rw-r--r-- | lib/compat.c | 31 |
1 files changed, 29 insertions, 2 deletions
diff --git a/lib/compat.c b/lib/compat.c index bab3f88..ce8a933 100644 --- a/lib/compat.c +++ b/lib/compat.c @@ -17,12 +17,15 @@ #include "libfuse_config.h" +#include <stddef.h> + struct fuse_args; struct fuse_cmdline_opts; struct fuse_cmdline_opts; struct fuse_session; struct fuse_custom_io; - +struct fuse_operations; +struct fuse_lowlevel_ops; /** * Compatibility ABI symbol for systems that do not support version symboling @@ -36,7 +39,7 @@ struct fuse_custom_io; #undef fuse_parse_cmdline #endif int fuse_parse_cmdline_30(struct fuse_args *args, - struct fuse_cmdline_opts *opts); + struct fuse_cmdline_opts *opts); int fuse_parse_cmdline(struct fuse_args *args, struct fuse_cmdline_opts *opts); int fuse_parse_cmdline(struct fuse_args *args, @@ -55,6 +58,30 @@ int fuse_session_custom_io(struct fuse_session *se, { return fuse_session_custom_io_30(se, io, fd); } + +int fuse_main_real_30(int argc, char *argv[], const struct fuse_operations *op, + size_t op_size, void *user_data); +int fuse_main_real(int argc, char *argv[], const struct fuse_operations *op, + size_t op_size, void *user_data); +int fuse_main_real(int argc, char *argv[], const struct fuse_operations *op, + size_t op_size, void *user_data) +{ + return fuse_main_real_30(argc, argv, op, op_size, user_data); +} + +struct fuse_session *fuse_session_new_30(struct fuse_args *args, + const struct fuse_lowlevel_ops *op, + size_t op_size, void *userdata); +struct fuse_session *fuse_session_new(struct fuse_args *args, + const struct fuse_lowlevel_ops *op, + size_t op_size, void *userdata); +struct fuse_session *fuse_session_new(struct fuse_args *args, + const struct fuse_lowlevel_ops *op, + size_t op_size, void *userdata) +{ + return fuse_session_new_30(args, op, op_size, userdata); +} + #endif |