-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathzonevd.cpp
More file actions
30 lines (22 loc) · 745 Bytes
/
Copy pathzonevd.cpp
File metadata and controls
30 lines (22 loc) · 745 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#include <dframework/fscore/FuseMount.h>
#include <dframework/fscore/SampleWorker.h>
using namespace dframework;
int main(void)
{
sp<Retval> retval;
sp<FuseMount> mount = new FuseMount();
sp<SampleWorker> worker = new SampleWorker();
sp<FsNodeList> nodelist = new FsNodeList();
sp<SampleWorkerList> workerlist = new SampleWorkerList();
sp<FuseRequestList> reqlist = new FuseRequestList();
worker->setMount(mount);
worker->setNodeList(nodelist);
worker->setWorkerList(workerlist);
worker->setRequestList(reqlist);
if( DFW_RET(retval, worker->start("/opt/fuse-mount")) ){
printf("%s\n", retval->dump().toChars() );
return 1;
}
workerlist->joinAll();
return 0;
};