* Clean up option parsing in fuse_main()
+ * Added fuse_get() function which returns the fuse object created
+ by fuse_main()
+
2004-02-20 Miklos Szeredi <mszeredi@inf.bme.hu>
* removed old way of mounting (fusermount mountpoint program)
*/
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 *
* ----------------------------------------------------------- */
static struct fuse *fuse;
+struct fuse *fuse_get(void)
+{
+ return fuse;
+}
+
static void usage(char *progname)
{
fprintf(stderr,