diff options
| author | Dan Engelbrecht <[email protected]> | 2025-10-03 14:17:07 +0200 |
|---|---|---|
| committer | GitHub Enterprise <[email protected]> | 2025-10-03 14:17:07 +0200 |
| commit | 158d4d50392ff1d416828ca2a17d4c3f4b877bd9 (patch) | |
| tree | 2c4a84bd3c6e9bce22567895a6e213a6e43bcd48 /src/zenserver/vfs/vfsservice.cpp | |
| parent | fix missing chunk (#548) (diff) | |
| download | zen-158d4d50392ff1d416828ca2a17d4c3f4b877bd9.tar.xz zen-158d4d50392ff1d416828ca2a17d4c3f4b877bd9.zip | |
move zen vfs implementation to zenstore (#549)
* move zen vfs implementation to zenstore
Diffstat (limited to 'src/zenserver/vfs/vfsservice.cpp')
| -rw-r--r-- | src/zenserver/vfs/vfsservice.cpp | 59 |
1 files changed, 5 insertions, 54 deletions
diff --git a/src/zenserver/vfs/vfsservice.cpp b/src/zenserver/vfs/vfsservice.cpp index bf761f8d1..863ec348a 100644 --- a/src/zenserver/vfs/vfsservice.cpp +++ b/src/zenserver/vfs/vfsservice.cpp @@ -1,7 +1,8 @@ // Copyright Epic Games, Inc. All Rights Reserved. #include "vfsservice.h" -#include "vfsimpl.h" + +#include <zenstore/vfsimpl.h> #include <zencore/compactbinarybuilder.h> @@ -61,10 +62,8 @@ GetContentAsCbObject(HttpServerRequest& HttpReq, CbObject& Cb) // echo {"method": "mount", "params": {"path": "d:\\VFS_ROOT"}} | curl.exe http://localhost:8558/vfs --data-binary @- // echo {"method": "unmount"} | curl.exe http://localhost:8558/vfs --data-binary @- -VfsService::VfsService(HttpStatusService& StatusService) : m_StatusService(StatusService) +VfsService::VfsService(HttpStatusService& StatusService, VfsServiceImpl* ServiceImpl) : m_StatusService(StatusService), m_Impl(ServiceImpl) { - m_Impl = new Impl; - m_Router.RegisterRoute( "info", [&](HttpRouterRequest& Request) { @@ -142,67 +141,19 @@ VfsService::VfsService(HttpStatusService& StatusService) : m_StatusService(Statu VfsService::~VfsService() { m_StatusService.UnregisterHandler("vfs", *this); - delete m_Impl; -} - -void -VfsService::Mount(std::string_view MountPoint) -{ - m_Impl->Mount(MountPoint); -} - -void -VfsService::Unmount() -{ - m_Impl->Unmount(); -} - -void -VfsService::AddService(Ref<ProjectStore>&& Ps) -{ - m_Impl->AddService(std::move(Ps)); -} - -void -VfsService::AddService(Ref<ZenCacheStore>&& Z$) -{ - m_Impl->AddService(std::move(Z$)); } #else -VfsService::VfsService(HttpStatusService& StatusService) : m_StatusService(StatusService) +VfsService::VfsService(HttpStatusService& StatusService, VfsServiceImpl* ServiceImpl) : m_StatusService(StatusService) { - ZEN_UNUSED(StatusService); + ZEN_UNUSED(ServiceImpl); } VfsService::~VfsService() { } -void -VfsService::Mount(std::string_view MountPoint) -{ - ZEN_UNUSED(MountPoint); -} - -void -VfsService::Unmount() -{ -} - -void -VfsService::AddService(Ref<ProjectStore>&& Ps) -{ - ZEN_UNUSED(Ps); -} - -void -VfsService::AddService(Ref<ZenCacheStore>&& Z$) -{ - ZEN_UNUSED(Z$); -} - #endif const char* |