40c64a879c
fuse_main needs the program arguments as char ** instead of const char ** or (even better) vector<string>. With this commit, we hide that inside the Fuse class. Everything outside handles these arguments as vector<string> and passes it as such to the Fuse class.
30 lines
584 B
C++
30 lines
584 B
C++
#pragma once
|
|
#ifndef MESSMER_FSPP_TEST_TESTUTILS_FUSETHREAD_H_
|
|
#define MESSMER_FSPP_TEST_TESTUTILS_FUSETHREAD_H_
|
|
|
|
#include <boost/thread.hpp>
|
|
#include <boost/chrono.hpp>
|
|
#include <cpp-utils/macros.h>
|
|
#include <boost/filesystem/path.hpp>
|
|
|
|
namespace fspp {
|
|
namespace fuse {
|
|
class Fuse;
|
|
}
|
|
}
|
|
|
|
class FuseThread {
|
|
public:
|
|
FuseThread(fspp::fuse::Fuse *fuse);
|
|
void start(const boost::filesystem::path &mountDir, const std::vector<std::string> &fuseOptions);
|
|
void stop();
|
|
|
|
private:
|
|
fspp::fuse::Fuse *_fuse;
|
|
boost::thread _child;
|
|
|
|
DISALLOW_COPY_AND_ASSIGN(FuseThread);
|
|
};
|
|
|
|
#endif
|