summaryrefslogtreecommitdiff
path: root/src/buildtool/serve_api/remote/serve_api.hpp
diff options
context:
space:
mode:
authorPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2023-09-21 16:09:58 +0200
committerPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2023-11-02 12:06:50 +0100
commitdab6ee07fe6d4523d7fb0f6b352e23a608721b56 (patch)
treed63e38bddecb41782511f3204cd96f031e797273 /src/buildtool/serve_api/remote/serve_api.hpp
parentb00660a429e79d9df0d447e3e9fbb9bf9f932d3c (diff)
downloadjustbuild-dab6ee07fe6d4523d7fb0f6b352e23a608721b56.tar.gz
remote serve: Extend client and API with tree-of-archive service calls
Diffstat (limited to 'src/buildtool/serve_api/remote/serve_api.hpp')
-rw-r--r--src/buildtool/serve_api/remote/serve_api.hpp8
1 files changed, 8 insertions, 0 deletions
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 <string>
#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<std::string>;
+ [[nodiscard]] auto RetrieveTreeFromArchive(
+ std::string const& content,
+ std::string const& archive_type = "archive",
+ std::string const& subdir = ".",
+ std::optional<PragmaSpecial> const& resolve_symlinks = std::nullopt,
+ bool sync_tree = false) -> std::optional<std::string>;
+
private:
// source tree service client
std::unique_ptr<SourceTreeClient> stc_;