From 2221efe5ca61ab78a0fbeb34954f3874bef0c39e Mon Sep 17 00:00:00 2001
From: Dan Goodliffe <dan@randomdan.homeip.net>
Date: Thu, 19 Feb 2015 01:14:04 +0000
Subject: Virtualise fues_main so that the ut framework can get access to the
 operations map

---
 libfusepp/fuseAppBase.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(limited to 'libfusepp')

diff --git a/libfusepp/fuseAppBase.h b/libfusepp/fuseAppBase.h
index 73a809a..d76fbff 100644
--- a/libfusepp/fuseAppBase.h
+++ b/libfusepp/fuseAppBase.h
@@ -57,6 +57,7 @@ class FuseAppBase {
 		virtual int onError(const std::exception & err) throw();
 
 		virtual int fuse_opt_parse(struct fuse_args *args, void *data, const struct fuse_opt opts[], fuse_opt_proc_t proc) = 0;
+		virtual int main(int &, char **, const struct fuse_operations *) = 0;
 
 #define GetHelper(func) getHelper<&FuseAppBase::func>(typeid(&FuseAppBase::func) != typeid(&FuseApp::func))
 		template <typename FuseApp>
@@ -121,7 +122,7 @@ class FuseAppBase {
 #endif
 #endif
 			};
-			return fuse_main(args.argc, args.argv, &operations, fa);
+			return fa->main(args.argc, args.argv, &operations);
 		}
 		struct fuse_args runint(int &, char ** &);
 
-- 
cgit v1.2.3