mirror of
https://github.com/falk-werner/webfuse
synced 2024-10-27 20:34:10 +00:00
28 lines
564 B
C++
28 lines
564 B
C++
|
#include "webfuse/mocks/mock_fuse.hpp"
|
||
|
#include "webfuse/utils/wrap.hpp"
|
||
|
|
||
|
extern "C"
|
||
|
{
|
||
|
static webfuse_test::FuseMock * webfuse_test_FuseMock = nullptr;
|
||
|
|
||
|
WF_WRAP_FUNC1(webfuse_test_FuseMock, void*, fuse_req_userdata, fuse_req_t);
|
||
|
WF_WRAP_FUNC2(webfuse_test_FuseMock, int, fuse_reply_open, fuse_req_t, const struct fuse_file_info *);
|
||
|
WF_WRAP_FUNC2(webfuse_test_FuseMock, int, fuse_reply_err, fuse_req_t, int);
|
||
|
|
||
|
}
|
||
|
|
||
|
namespace webfuse_test
|
||
|
{
|
||
|
|
||
|
FuseMock::FuseMock()
|
||
|
{
|
||
|
webfuse_test_FuseMock = this;
|
||
|
}
|
||
|
|
||
|
FuseMock::~FuseMock()
|
||
|
{
|
||
|
webfuse_test_FuseMock = nullptr;
|
||
|
}
|
||
|
|
||
|
|
||
|
}
|