diff options
Diffstat (limited to 'include/fuse.h')
-rw-r--r-- | include/fuse.h | 51 |
1 files changed, 25 insertions, 26 deletions
diff --git a/include/fuse.h b/include/fuse.h index 30d5f80..b54cb47 100644 --- a/include/fuse.h +++ b/include/fuse.h @@ -121,6 +121,31 @@ extern "C" { #endif /* + * Main function of FUSE. + * + * This is for the lazy. This is all that has to be called from the + * main() function. + * + * This function does the following: + * - mounts the filesystem + * - installs signal handlers for INT, HUP, TERM and PIPE + * - registers an exit handler to unmount the filesystem on program exit + * - parses command line options (-d -s and -h) + * - creates a fuse handle + * - registers the operations + * - calls either the single-threaded or the multi-threaded event loop + * + * @param argc the argument counter passed to the main() function + * @param argv the argument vector passed to the main() function + * @param op the file system operation + */ +void fuse_main(int argc, char *argv[], const struct fuse_operations *op); + +/* ----------------------------------------------------------- * + * More detailed API * + * ----------------------------------------------------------- */ + +/* * Create a FUSE mountpoint * * Returns a control file descriptor suitable for passing to @@ -169,7 +194,6 @@ void fuse_destroy(struct fuse *f); */ void fuse_loop(struct fuse *f); - /** * Exit from event loop * @@ -203,31 +227,6 @@ void fuse_loop_mt(struct fuse *f); struct fuse_context *fuse_get_context(struct fuse *f); /* ----------------------------------------------------------- * - * Miscellaneous helper fuctions * - * ----------------------------------------------------------- */ - -/* - * Main function of FUSE. - * - * This is for the lazy. This is all that has to be called from the - * main() function. - * - * This function does the following: - * - mounts the filesystem - * - installs signal handlers for INT, HUP, TERM and PIPE - * - registers an exit handler to unmount the filesystem on program exit - * - parses command line options (-d -s and -h) - * - creates a fuse handle - * - registers the operations - * - calls either the single-threaded or the multi-threaded event loop - * - * @param argc the argument counter passed to the main() function - * @param argv the argument vector passed to the main() function - * @param op the file system operation - */ -void fuse_main(int argc, char *argv[], const struct fuse_operations *op); - -/* ----------------------------------------------------------- * * Advanced API for event handling, don't worry about this... * * ----------------------------------------------------------- */ |