From dab6ee07fe6d4523d7fb0f6b352e23a608721b56 Mon Sep 17 00:00:00 2001 From: Paul Cristian Sarbu Date: Thu, 21 Sep 2023 16:09:58 +0200 Subject: remote serve: Extend client and API with tree-of-archive service calls --- src/buildtool/serve_api/remote/serve_api.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/buildtool/serve_api/remote/serve_api.hpp') diff --git a/src/buildtool/serve_api/remote/serve_api.hpp b/src/buildtool/serve_api/remote/serve_api.hpp index d206b416..a0d50ea9 100644 --- a/src/buildtool/serve_api/remote/serve_api.hpp +++ b/src/buildtool/serve_api/remote/serve_api.hpp @@ -20,6 +20,7 @@ #include #include "src/buildtool/common/remote/port.hpp" +#include "src/buildtool/file_system/symlinks_map/pragma_special.hpp" #include "src/buildtool/serve_api/remote/source_tree_client.hpp" class ServeApi final { @@ -41,6 +42,13 @@ class ServeApi final { bool sync_tree = false) -> std::optional; + [[nodiscard]] auto RetrieveTreeFromArchive( + std::string const& content, + std::string const& archive_type = "archive", + std::string const& subdir = ".", + std::optional const& resolve_symlinks = std::nullopt, + bool sync_tree = false) -> std::optional; + private: // source tree service client std::unique_ptr stc_; -- cgit v1.2.3