summaryrefslogtreecommitdiff
path: root/src/buildtool/serve_api/remote/serve_api.hpp
diff options
context:
space:
mode:
authorKlaus Aehlig <klaus.aehlig@huawei.com>2024-03-04 15:51:12 +0100
committerKlaus Aehlig <klaus.aehlig@huawei.com>2024-03-05 11:05:10 +0100
commit6e2ff90f698d327ff8ed7c3943166a3ad5f9b278 (patch)
treebd5ab4c07206428ae8336c6f247bfa34befed0c1 /src/buildtool/serve_api/remote/serve_api.hpp
parentc403ab0da5095d3eb7d139f94a8e9e360e000300 (diff)
downloadjustbuild-6e2ff90f698d327ff8ed7c3943166a3ad5f9b278.tar.gz
serve client: add custom function to ask for a foreign-file root
Diffstat (limited to 'src/buildtool/serve_api/remote/serve_api.hpp')
-rw-r--r--src/buildtool/serve_api/remote/serve_api.hpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/buildtool/serve_api/remote/serve_api.hpp b/src/buildtool/serve_api/remote/serve_api.hpp
index c2ad5353..219fe7ab 100644
--- a/src/buildtool/serve_api/remote/serve_api.hpp
+++ b/src/buildtool/serve_api/remote/serve_api.hpp
@@ -65,6 +65,13 @@ class ServeApi final {
return Instance().stc_->ServeDistdirTree(distfiles, sync_tree);
}
+ [[nodiscard]] static auto RetrieveTreeFromForeignFile(
+ const std::string& content,
+ const std::string& name,
+ bool executable) noexcept -> std::variant<bool, std::string> {
+ return Instance().stc_->ServeForeignFileTree(content, name, executable);
+ }
+
[[nodiscard]] static auto ContentInRemoteCAS(
std::string const& content) noexcept -> bool {
return Instance().stc_->ServeContent(content);