diff options
author | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2023-11-02 11:35:51 +0100 |
---|---|---|
committer | Alberto Sartori <alberto.sartori@huawei.com> | 2023-11-15 20:19:18 +0100 |
commit | 40ed3ee050e0fc3d0f41fc46f7360d28b9a1f7cc (patch) | |
tree | e1096799ec23b3ae5009cbbead98ee5db559e54a /src/other_tools/just_mr/setup_utils.hpp | |
parent | e2e0e3b4e92885dd74127aacaabb0c5f3ba86ce7 (diff) | |
download | justbuild-40ed3ee050e0fc3d0f41fc46f7360d28b9a1f7cc.tar.gz |
just-mr: Update to using the static methods of ServeApi
Diffstat (limited to 'src/other_tools/just_mr/setup_utils.hpp')
-rw-r--r-- | src/other_tools/just_mr/setup_utils.hpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/other_tools/just_mr/setup_utils.hpp b/src/other_tools/just_mr/setup_utils.hpp index 9530cc95..d66a1ba1 100644 --- a/src/other_tools/just_mr/setup_utils.hpp +++ b/src/other_tools/just_mr/setup_utils.hpp @@ -59,15 +59,17 @@ void DefaultReachableRepositories( std::optional<std::filesystem::path> const& absent_file_opt) noexcept -> std::shared_ptr<Configuration>; -/// \brief Setup of a remote API based on just-mr arguments. -[[nodiscard]] auto SetupRemoteApi( +/// \brief Get a remote API instance based on just-mr arguments. +/// \returns Pointer to a configured remote API, or nullptr. +[[nodiscard]] auto GetRemoteApi( std::optional<std::string> const& remote_exec_addr, MultiRepoRemoteAuthArguments const& auth) -> IExecutionApi::Ptr; /// \brief Setup of a 'just serve' remote API based on just-mr arguments. +/// \returns Flag stating whether a serve API is available or not. [[nodiscard]] auto SetupServeApi( std::optional<std::string> const& remote_serve_addr, - MultiRepoRemoteAuthArguments const& auth) -> ServeApi::Ptr; + MultiRepoRemoteAuthArguments const& auth) -> bool; } // namespace Utils |