diff options
Diffstat (limited to 'include/fuse.h')
-rw-r--r-- | include/fuse.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/include/fuse.h b/include/fuse.h index 5721caa..948442c 100644 --- a/include/fuse.h +++ b/include/fuse.h @@ -659,6 +659,32 @@ struct fuse *fuse_new(struct fuse_chan *ch, struct fuse_args *args, void *user_data); /** + * Create a FUSE mountpoint + * + * Returns a control file descriptor suitable for passing to + * 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 + * @return the communication channel on success, NULL on failure + */ +struct fuse_chan *fuse_mount(const char *mountpoint, struct fuse_args *args); + +/** + * Umount a FUSE mountpoint + * + * @param mountpoint the mount point path + * @param ch the communication channel + */ +void fuse_unmount(const char *mountpoint, struct fuse_chan *ch); + +/** * Destroy the FUSE handle. * * The communication channel attached to the handle is also destroyed. |