aboutsummaryrefslogtreecommitdiffstats
path: root/include/fuse.h
diff options
context:
space:
mode:
authorMiklos Szeredi <miklos@szeredi.hu>2003-10-13 10:08:06 +0000
committerMiklos Szeredi <miklos@szeredi.hu>2003-10-13 10:08:06 +0000
commit0e5350899c9b16ed867d12856665f008357dea79 (patch)
tree4e567dff1ea6db43046d916ca6c336f93a29590c /include/fuse.h
parentce63733284dd6519d2f4ca03c6aa8a6caa328379 (diff)
downloadlibfuse-0e5350899c9b16ed867d12856665f008357dea79.tar.gz
fix
Diffstat (limited to 'include/fuse.h')
-rw-r--r--include/fuse.h51
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... *
* ----------------------------------------------------------- */