From 0e5350899c9b16ed867d12856665f008357dea79 Mon Sep 17 00:00:00 2001 From: Miklos Szeredi Date: Mon, 13 Oct 2003 10:08:06 +0000 Subject: fix --- include/fuse.h | 51 +++++++++++++++++++++++++-------------------------- 1 file changed, 25 insertions(+), 26 deletions(-) (limited to 'include/fuse.h') diff --git a/include/fuse.h b/include/fuse.h index 30d5f80..b54cb47 100644 --- a/include/fuse.h +++ b/include/fuse.h @@ -120,6 +120,31 @@ struct fuse_context { 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 * @@ -169,7 +194,6 @@ void fuse_destroy(struct fuse *f); */ void fuse_loop(struct fuse *f); - /** * Exit from event loop * @@ -202,31 +226,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... * * ----------------------------------------------------------- */ -- cgit v1.2.3