summaryrefslogtreecommitdiff
path: root/netfs/fuse
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2015-02-19 01:14:04 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2015-05-06 00:40:49 +0100
commit3523abccb5104d27725e092103b43d75fa2b90d3 (patch)
treee54eef22f495d15497d80feaa4e413bfe6a802a7 /netfs/fuse
parentTear down adapter on daemon destruction (diff)
downloadnetfs-3523abccb5104d27725e092103b43d75fa2b90d3.tar.bz2
netfs-3523abccb5104d27725e092103b43d75fa2b90d3.tar.xz
netfs-3523abccb5104d27725e092103b43d75fa2b90d3.zip
Virtualise fues_main so that the ut framework can get access to the operations map
Diffstat (limited to 'netfs/fuse')
-rw-r--r--netfs/fuse/netfs.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/netfs/fuse/netfs.cpp b/netfs/fuse/netfs.cpp
index 21689f2..f700a74 100644
--- a/netfs/fuse/netfs.cpp
+++ b/netfs/fuse/netfs.cpp
@@ -13,6 +13,12 @@ class FuseImpl : public NetFS::FuseApp {
{
return ::fuse_opt_parse(args, data, opts, proc);
}
+
+ int main(int & argc, char ** argv, const struct fuse_operations * ops) override
+ {
+ return ::fuse_main(argc, argv, ops, this);
+ }
+
};
int