aboutsummaryrefslogtreecommitdiffstats
path: root/include/fuse.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/fuse.h')
-rw-r--r--include/fuse.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/fuse.h b/include/fuse.h
index 7fdcc6e..7a751ae 100644
--- a/include/fuse.h
+++ b/include/fuse.h
@@ -150,6 +150,15 @@ extern "C" {
*/
void fuse_main(int argc, char *argv[], const struct fuse_operations *op);
+/*
+ * Returns the fuse object created by fuse_main()
+ *
+ * This is useful when fuse_get_context() is used.
+ *
+ * @return the fuse object
+ */
+struct fuse *fuse_get(void);
+
/* ----------------------------------------------------------- *
* More detailed API *
* ----------------------------------------------------------- */