From 65ba219885aefa096437c2bd92ad8394a5ecda75 Mon Sep 17 00:00:00 2001 From: Mark Glines Date: Thu, 18 Apr 2002 14:41:48 +0000 Subject: fuse_mount_ioslave() and helper util --- include/fuse.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'include') diff --git a/include/fuse.h b/include/fuse.h index b75978c..ea28d0d 100644 --- a/include/fuse.h +++ b/include/fuse.h @@ -180,6 +180,17 @@ 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... * * ----------------------------------------------------------- */ -- cgit v1.2.3