summaryrefslogtreecommitdiff
path: root/libfusepp/fuseAppBase.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2015-02-15 17:11:20 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2015-05-06 00:40:49 +0100
commit4b8f75974f7bdce5d68b95ac8d4c2e9979c38057 (patch)
treedf4339432eabb553d095933e1d6e44aaf14117d3 /libfusepp/fuseAppBase.h
parentRename configs for uniqueness (diff)
downloadnetfs-4b8f75974f7bdce5d68b95ac8d4c2e9979c38057.tar.bz2
netfs-4b8f75974f7bdce5d68b95ac8d4c2e9979c38057.tar.xz
netfs-4b8f75974f7bdce5d68b95ac8d4c2e9979c38057.zip
Refactor fuse lib deps into final exe
Diffstat (limited to 'libfusepp/fuseAppBase.h')
-rw-r--r--libfusepp/fuseAppBase.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/libfusepp/fuseAppBase.h b/libfusepp/fuseAppBase.h
index a320d36..91ba22f 100644
--- a/libfusepp/fuseAppBase.h
+++ b/libfusepp/fuseAppBase.h
@@ -56,11 +56,13 @@ class FuseAppBase {
virtual int fallocate(const char *, int, off_t, off_t, struct fuse_file_info *);
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;
+
#define GetHelper(func) getHelper<&FuseAppBase::func>(typeid(&FuseAppBase::func) != typeid(&FuseApp::func))
template <typename FuseApp>
static int run(int & argc, char** & argv, FuseApp * fa)
{
- auto args = runint(argc, argv, fa);
+ auto args = fa->runint(argc, argv, fa);
struct fuse_operations operations = {
fuseCall<const char *, struct stat *>::GetHelper(getattr),
fuseCall<const char *, char *, size_t>::GetHelper(readlink),
@@ -122,7 +124,7 @@ class FuseAppBase {
return fuse_main(args.argc, args.argv, &operations, fa);
}
private:
- static struct fuse_args runint(int &, char ** &, FuseAppBase *);
+ struct fuse_args runint(int &, char ** &, FuseAppBase *);
static void * fuseInit(struct fuse_conn_info *conn);
static void fuseDestroy(void *);