#endif
#endif
-/* Do not call this directly, but only through fuse_session_new() */
-#if (!defined(LIBFUSE_BUILT_WITH_VERSIONED_SYMBOLS))
-struct fuse_session *
-_fuse_session_new_317(struct fuse_args *args,
- const struct fuse_lowlevel_ops *op,
- size_t op_size,
- struct libfuse_version *version,
- void *userdata);
-#define _fuse_session_new(args, op, op_size, version, userdata) \
- _fuse_session_new_317(args, op, op_size, version, userdata)
-#endif
-
/**
* Create a low level session.
*
* @return the fuse session on success, NULL on failure
**/
static inline struct fuse_session *
-fuse_session_new(struct fuse_args *args,
- const struct fuse_lowlevel_ops *op,
- size_t op_size,
- void *userdata)
+fuse_session_new_fn(struct fuse_args *args, const struct fuse_lowlevel_ops *op,
+ size_t op_size, void *userdata)
{
struct libfuse_version version = {
.major = FUSE_MAJOR_VERSION,
};
/* not declared globally, to restrict usage of this function */
- struct fuse_session *_fuse_session_new(
+ struct fuse_session *fuse_session_new_versioned(
struct fuse_args *args, const struct fuse_lowlevel_ops *op,
size_t op_size, struct libfuse_version *version,
void *userdata);
- return _fuse_session_new(args, op, op_size, &version, userdata);
+ return fuse_session_new_versioned(args, op, op_size, &version,
+ userdata);
}
+#define fuse_session_new(args, op, op_size, userdata) \
+ fuse_session_new_fn(args, op, op_size, userdata)
/*
* This should mostly not be called directly, but instead the
return fuse_session_custom_io_30(se, io, fd);
}
+#endif /* LIBFUSE_BUILT_WITH_VERSIONED_SYMBOLS */
+
+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);
{
return fuse_session_new_30(args, op, op_size, userdata);
}
-
-#endif /* LIBFUSE_BUILT_WITH_VERSIONED_SYMBOLS */
-
-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);
-}
#endif
/* not declared globally, to restrict usage of this function */
- struct fuse_session *_fuse_session_new(
+ struct fuse_session *fuse_session_new_versioned(
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);
+ f->se = fuse_session_new_versioned(args, &llop, sizeof(llop), version,
+ f);
if (f->se == NULL)
goto out_free_fs;
return _fuse_session_receive_buf(se, buf, ch, true);
}
-FUSE_SYMVER("_fuse_session_new_317", "_fuse_session_new@@FUSE_3.17")
-struct fuse_session *_fuse_session_new_317(struct fuse_args *args,
- const struct fuse_lowlevel_ops *op,
- size_t op_size,
- struct libfuse_version *version,
- void *userdata);
-struct fuse_session *_fuse_session_new_317(struct fuse_args *args,
- const struct fuse_lowlevel_ops *op,
- size_t op_size,
- struct libfuse_version *version,
- void *userdata)
+struct fuse_session *
+fuse_session_new_versioned(struct fuse_args *args,
+ const struct fuse_lowlevel_ops *op, size_t op_size,
+ struct libfuse_version *version, void *userdata);
+struct fuse_session *
+fuse_session_new_versioned(struct fuse_args *args,
+ const struct fuse_lowlevel_ops *op, size_t op_size,
+ struct libfuse_version *version, void *userdata)
{
int err;
struct fuse_session *se;
}
struct fuse_session *fuse_session_new_30(struct fuse_args *args,
- const struct fuse_lowlevel_ops *op,
- size_t op_size,
- void *userdata);
-FUSE_SYMVER("fuse_session_new_30", "fuse_session_new@FUSE_3.0")
+ const struct fuse_lowlevel_ops *op,
+ size_t op_size, void *userdata);
struct fuse_session *fuse_session_new_30(struct fuse_args *args,
const struct fuse_lowlevel_ops *op,
size_t op_size,
/* unknown version */
struct libfuse_version version = { 0 };
- return _fuse_session_new_317(args, op, op_size, &version, userdata);
+ return fuse_session_new_versioned(args, op, op_size, &version,
+ userdata);
}
FUSE_SYMVER("fuse_session_custom_io_317", "fuse_session_custom_io@@FUSE_3.17")
FUSE_3.17 {
global:
fuse_main_real_versioned;
+ fuse_session_new_versioned;
#if !defined(LIBFUSE_BUILT_WITH_VERSIONED_SYMBOLS)
- _fuse_session_new_317;
_fuse_new_317;
#endif
fuse_passthrough_open;