summaryrefslogtreecommitdiff
path: root/src/buildtool/serve_api/remote/serve_api.hpp
diff options
context:
space:
mode:
authorPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2024-01-10 16:44:42 +0100
committerPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2024-01-26 14:51:43 +0100
commitdebbc9dd20156b5ba94946c4cc2f689a8e163a2b (patch)
treeba05d72f82a4a80bdedd8f5545a942a8b4b1821c /src/buildtool/serve_api/remote/serve_api.hpp
parent81ce4543ad0761adbf5a0dfcf94078b88aa88bc0 (diff)
downloadjustbuild-debbc9dd20156b5ba94946c4cc2f689a8e163a2b.tar.gz
serve source tree: Client-side and API implementations of to_git pragma-related RPCs
Diffstat (limited to 'src/buildtool/serve_api/remote/serve_api.hpp')
-rw-r--r--src/buildtool/serve_api/remote/serve_api.hpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/buildtool/serve_api/remote/serve_api.hpp b/src/buildtool/serve_api/remote/serve_api.hpp
index 965cf8df..44169223 100644
--- a/src/buildtool/serve_api/remote/serve_api.hpp
+++ b/src/buildtool/serve_api/remote/serve_api.hpp
@@ -75,6 +75,16 @@ class ServeApi final {
return Instance().stc_->ServeTree(tree_id);
}
+ [[nodiscard]] static auto CheckRootTree(std::string const& tree_id)
+ -> std::optional<bool> {
+ return Instance().stc_->CheckRootTree(tree_id);
+ }
+
+ [[nodiscard]] static auto GetTreeFromRemote(std::string const& tree_id)
+ -> bool {
+ return Instance().stc_->GetRemoteTree(tree_id);
+ }
+
[[nodiscard]] static auto ServeTargetVariables(
std::string const& target_root_id,
std::string const& target_file,