*
* Do not call this directly, use fuse_main()
*/
+int fuse_main_real_versioned(int argc, char *argv[],
+ const struct fuse_operations *op, size_t op_size,
+ struct libfuse_version *version, void *user_data);
static inline int fuse_main_real(int argc, char *argv[],
const struct fuse_operations *op,
size_t op_size, void *user_data)
"%s is a libfuse internal function, please use fuse_main()\n",
__func__);
- /* not declared globally, to restrict usage of this function */
- int fuse_main_real_versioned(int argc, char *argv[],
- const struct fuse_operations *op,
- size_t op_size,
- struct libfuse_version *version,
- void *user_data);
-
return fuse_main_real_versioned(argc, argv, op, op_size, &version,
user_data);
}
*
* Example usage, see hello.c
*/
+int fuse_main_real_versioned(int argc, char *argv[],
+ const struct fuse_operations *op, size_t op_size,
+ struct libfuse_version *version, void *user_data);
static inline int fuse_main_fn(int argc, char *argv[],
const struct fuse_operations *op,
void *user_data)
.padding = 0
};
- /* not declared globally, to restrict usage of this function */
- int fuse_main_real_versioned(int argc, char *argv[],
- const struct fuse_operations *op,
- size_t op_size,
- struct libfuse_version *version,
- void *user_data);
return fuse_main_real_versioned(argc, argv, op, sizeof(*(op)), &version,
user_data);
}
*/
void fuse_lib_help(struct fuse_args *args);
+/* Do not call this directly, use fuse_new() instead */
+struct fuse *_fuse_new_30(struct fuse_args *args,
+ const struct fuse_operations *op, size_t op_size,
+ struct libfuse_version *version, void *user_data);
+struct fuse *_fuse_new_31(struct fuse_args *args,
+ const struct fuse_operations *op, size_t op_size,
+ struct libfuse_version *version, void *user_data);
+
/**
* Create a new FUSE filesystem.
*
* @return the created FUSE handle
*/
#if FUSE_USE_VERSION == 30
-struct fuse *_fuse_new_30(struct fuse_args *args,
- const struct fuse_operations *op,
- size_t op_size,
- struct libfuse_version *version,
- void *user_data);
-static inline struct fuse *
-fuse_new_fn(struct fuse_args *args,
- const struct fuse_operations *op, size_t op_size,
- void *user_data)
+static inline struct fuse *fuse_new_fn(struct fuse_args *args,
+ const struct fuse_operations *op,
+ size_t op_size, void *user_data)
{
- /* not declared globally, to restrict usage of this function */
- struct fuse *_fuse_new_30(struct fuse_args *args,
- const struct fuse_operations *op, size_t op_size,
- struct libfuse_version *version,
- void *user_data);
-
struct libfuse_version version = {
.major = FUSE_MAJOR_VERSION,
.minor = FUSE_MINOR_VERSION,
return _fuse_new_30(args, op, op_size, &version, user_data);
}
#else /* FUSE_USE_VERSION */
-static inline struct fuse *
-fuse_new_fn(struct fuse_args *args,
- const struct fuse_operations *op, size_t op_size,
- void *user_data)
+static inline struct fuse *fuse_new_fn(struct fuse_args *args,
+ const struct fuse_operations *op,
+ size_t op_size, void *user_data)
{
struct libfuse_version version = {
.major = FUSE_MAJOR_VERSION,
.padding = 0
};
- /* not declared globally, to restrict usage of this function */
- struct fuse *_fuse_new_31(struct fuse_args *args,
- const struct fuse_operations *op,
- size_t op_size, struct libfuse_version *version,
- void *user_data);
return _fuse_new_31(args, op, op_size, &version, user_data);
}
#endif
* through the fuse_new macro
*/
struct fuse *_fuse_new_31(struct fuse_args *args,
- const struct fuse_operations *op,
- size_t op_size, struct libfuse_version *version,
- void *user_data);
-struct fuse *_fuse_new_31(struct fuse_args *args,
- const struct fuse_operations *op,
- size_t op_size, struct libfuse_version *version,
- void *user_data)
+ const struct fuse_operations *op, size_t op_size,
+ struct libfuse_version *version, void *user_data)
{
struct fuse *f;
struct node *root;
}
/* Emulates 3.0-style fuse_new(), which processes --help */
-struct fuse *_fuse_new_30(struct fuse_args *args, const struct fuse_operations *op,
- size_t op_size,
- struct libfuse_version *version,
- void *user_data);
FUSE_SYMVER("_fuse_new_30", "_fuse_new@FUSE_3.0")
struct fuse *_fuse_new_30(struct fuse_args *args,
const struct fuse_operations *op,