From e870a0427adb50a64dc8bcbacfacb089872c6908 Mon Sep 17 00:00:00 2001 From: Nikolaus Rath Date: Fri, 7 Jul 2017 15:25:41 +0200 Subject: Added public fuse_lib_help(), bumped minor version --- include/fuse.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'include/fuse.h') diff --git a/include/fuse.h b/include/fuse.h index 0c5741f..f4ac670 100644 --- a/include/fuse.h +++ b/include/fuse.h @@ -794,6 +794,19 @@ struct fuse_context { * More detailed API * * ----------------------------------------------------------- */ +/** + * Print available options (high- and low-level) to stdout. This is + * not an exhaustive list, but includes only those options that may be + * of interest to an end-user of a file system. + * + * The function looks at the argument vector only to determine if + * there are additional modules to be loaded (module=foo option), + * and attempts to call their help functions as well. + * + * @param args the argument vector. + */ +void fuse_lib_help(struct fuse_args *args); + /** * Create a new FUSE filesystem. * @@ -821,8 +834,14 @@ struct fuse_context { * `struct fuse_operations.init` handler. * @return the created FUSE handle */ +#if FUSE_USE_VERSION == 30 +#define fuse_new(args, op, size, data) fuse_new_30(args, op, size, data) +#else struct fuse *fuse_new(struct fuse_args *args, const struct fuse_operations *op, size_t op_size, void *private_data); +#endif +struct fuse *fuse_new_30(struct fuse_args *args, const struct fuse_operations *op, + size_t op_size, void *private_data); /** * Mount a FUSE file system. -- cgit v1.2.3