1
0
mirror of https://github.com/falk-werner/webfuse-provider synced 2024-10-27 20:44:10 +00:00
falk-werner_webfuse-provider/test/webfuse_provider/test_util/webfuse_server.hpp
2020-07-12 11:09:50 +02:00

30 lines
718 B
C++

#ifndef WFP_TEST_UTIL_WEBFUSE_SERVER_HPP
#define WFP_TEST_UTIL_WEBFUSE_SERVER_HPP
#include <string>
namespace webfuse_test
{
class WebfuseServer
{
WebfuseServer(WebfuseServer const &) = delete;
WebfuseServer& operator=(WebfuseServer const &) = delete;
public:
WebfuseServer(bool use_tls = false);
~WebfuseServer();
std::string const & GetUrl();
std::string Invoke(std::string const & method, std::string const & params);
std::string Lookup(int parent, std::string const & name);
std::string Open(int inode, int flags);
std::string Read(int inode, int handle, int offset, int length);
std::string ReadDir(int inode);
private:
class Private;
Private * d;
};
}
#endif