diff options
author | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2023-09-21 16:09:58 +0200 |
---|---|---|
committer | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2023-11-02 12:06:50 +0100 |
commit | dab6ee07fe6d4523d7fb0f6b352e23a608721b56 (patch) | |
tree | d63e38bddecb41782511f3204cd96f031e797273 /src/buildtool/serve_api/remote/serve_api.cpp | |
parent | b00660a429e79d9df0d447e3e9fbb9bf9f932d3c (diff) | |
download | justbuild-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.cpp')
-rw-r--r-- | src/buildtool/serve_api/remote/serve_api.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/buildtool/serve_api/remote/serve_api.cpp b/src/buildtool/serve_api/remote/serve_api.cpp index 0b0493d7..0c5c531c 100644 --- a/src/buildtool/serve_api/remote/serve_api.cpp +++ b/src/buildtool/serve_api/remote/serve_api.cpp @@ -29,3 +29,13 @@ auto ServeApi::RetrieveTreeFromCommit(std::string const& commit, -> std::optional<std::string> { return stc_->ServeCommitTree(commit, subdir, sync_tree); } + +auto ServeApi::RetrieveTreeFromArchive( + std::string const& content, + std::string const& archive_type, + std::string const& subdir, + std::optional<PragmaSpecial> const& resolve_symlinks, + bool sync_tree) -> std::optional<std::string> { + return stc_->ServeArchiveTree( + content, archive_type, subdir, resolve_symlinks, sync_tree); +} |