aboutsummaryrefslogtreecommitdiffstats
path: root/include/fuse_common.h
diff options
context:
space:
mode:
authorNikolaus Rath <Nikolaus@rath.org>2016-10-01 11:24:46 -0700
committerNikolaus Rath <Nikolaus@rath.org>2016-10-01 11:24:46 -0700
commite20e5c9ae574bba8827310edf38ae9edca08c469 (patch)
treee248bdc392e09f5419dcced5c7dedde4972dff50 /include/fuse_common.h
parent944d1e1521935e82a3e667a401c7184467793ebc (diff)
downloadlibfuse-e20e5c9ae574bba8827310edf38ae9edca08c469.tar.gz
Improve documentation of argument parsing.
Diffstat (limited to 'include/fuse_common.h')
-rw-r--r--include/fuse_common.h16
1 files changed, 13 insertions, 3 deletions
diff --git a/include/fuse_common.h b/include/fuse_common.h
index 2fa9962..df92e8e 100644
--- a/include/fuse_common.h
+++ b/include/fuse_common.h
@@ -213,7 +213,13 @@ struct fuse_pollhandle;
* Create a FUSE mountpoint
*
* Returns a control file descriptor suitable for passing to
- * fuse_new()
+ * fuse_new(). Unknown parameters in `args` are passed through
+ * unchanged. Known parameters (with the exception of --help and
+ * --version) are removed from `args`.
+ *
+ * If the --help or --version parameters are specified, the function
+ * prints the requested information to stdout and returns a valid
+ * pointer. However, it does not actually perform the mount.
*
* @param mountpoint the mount point path
* @param args argument vector
@@ -230,7 +236,7 @@ struct fuse_chan *fuse_mount(const char *mountpoint, struct fuse_args *args);
void fuse_unmount(const char *mountpoint, struct fuse_chan *ch);
/**
- * Parse common options
+ * Utility functions for simple file systems to parse common options.
*
* The following options are parsed:
*
@@ -242,7 +248,11 @@ void fuse_unmount(const char *mountpoint, struct fuse_chan *ch);
* '-ofsname=..' file system name, if not present, then set to the program
* name
*
- * All parameters may be NULL
+ * Unknown parameters in `args` are passed through unchanged. Known
+ * parameters (with the exception of --help and --version) are removed.
+ *
+ * All parameters may be NULL (in which case they may still
+ * be specified on the command line, but will not be set).
*
* @param args argument vector
* @param mountpoint the returned mountpoint, should be freed after use