aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMiklos Szeredi <miklos@szeredi.hu>2002-04-19 15:57:02 +0000
committerMiklos Szeredi <miklos@szeredi.hu>2002-04-19 15:57:02 +0000
commita4b0c77de08fca142ae22c74b3317930af404baa (patch)
treed5c189a997a77c8d50472206f45bf731e0c1568b /include
parent4b5006ae116b0e5eacd63bcf3556d5ab336950fe (diff)
downloadlibfuse-a4b0c77de08fca142ae22c74b3317930af404baa.tar.gz
interface cleanup
Diffstat (limited to 'include')
-rw-r--r--include/fuse.h23
1 files changed, 12 insertions, 11 deletions
diff --git a/include/fuse.h b/include/fuse.h
index ea28d0d..b9e7962 100644
--- a/include/fuse.h
+++ b/include/fuse.h
@@ -100,6 +100,18 @@ struct fuse_context {
extern "C" {
#endif
+/*
+ * Create a FUSE mountpoint
+ *
+ * Returns a control file descriptor suitable for passing to
+ * fuse_new()
+ *
+ * @param mountpoint the mount point path
+ * @param mount arguments (passed to the fusermount program)
+ * @return the control file descriptor on success, -1 on failure
+ */
+int fuse_mount(const char *mountpoint, const char *mount_args);
+
/**
* Create a new FUSE filesystem.
*
@@ -180,17 +192,6 @@ struct fuse_context *fuse_get_context(struct fuse *f);
*/
void fuse_main(int argc, char *argv[], const struct fuse_operations *op);
-/*
- * Spawn an I/O slave, creating an fd suitable for passing to fuse_new()
- *
- * This spawns fusermount, and then a small message tosser process to
- * allow access to fuse_new() and fuse_loop() without the limitations
- * of reexecuting the main FUSE process and destroying stdin.
- *
- * @param mountpoint a char pointer to the requested mountpoint
- */
-int fuse_mount_ioslave(char *mountpoint);
-
/* ----------------------------------------------------------- *
* Advanced API for event handling, don't worry about this... *
* ----------------------------------------------------------- */