aboutsummaryrefslogtreecommitdiff
path: root/src/zenserver/vfs/vfsservice.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/zenserver/vfs/vfsservice.h')
-rw-r--r--src/zenserver/vfs/vfsservice.h13
1 files changed, 3 insertions, 10 deletions
diff --git a/src/zenserver/vfs/vfsservice.h b/src/zenserver/vfs/vfsservice.h
index 0d0168e23..4e06da878 100644
--- a/src/zenserver/vfs/vfsservice.h
+++ b/src/zenserver/vfs/vfsservice.h
@@ -5,7 +5,6 @@
#include <zenbase/refcount.h>
#include <zenhttp/httpserver.h>
#include <zenhttp/httpstatus.h>
-#include <zenvfs/vfs.h>
#include <memory>
@@ -13,6 +12,7 @@ namespace zen {
class ProjectStore;
class ZenCacheStore;
+struct VfsServiceImpl;
/** Virtual File System service
@@ -28,23 +28,16 @@ class ZenCacheStore;
class VfsService : public HttpService, public IHttpStatusProvider
{
public:
- explicit VfsService(HttpStatusService& StatusService);
+ explicit VfsService(HttpStatusService& StatusService, VfsServiceImpl* ServiceImpl);
~VfsService();
- void Mount(std::string_view MountPoint);
- void Unmount();
-
- void AddService(Ref<ProjectStore>&&);
- void AddService(Ref<ZenCacheStore>&&);
-
protected:
virtual const char* BaseUri() const override;
virtual void HandleRequest(HttpServerRequest& HttpServiceRequest) override;
virtual void HandleStatusRequest(HttpServerRequest& Request) override;
private:
- struct Impl;
- Impl* m_Impl = nullptr;
+ VfsServiceImpl* m_Impl = nullptr;
HttpStatusService& m_StatusService;
HttpRequestRouter m_Router;