From 40ed3ee050e0fc3d0f41fc46f7360d28b9a1f7cc Mon Sep 17 00:00:00 2001 From: Paul Cristian Sarbu Date: Thu, 2 Nov 2023 11:35:51 +0100 Subject: just-mr: Update to using the static methods of ServeApi --- src/other_tools/just_mr/setup_utils.hpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/other_tools/just_mr/setup_utils.hpp') 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 const& absent_file_opt) noexcept -> std::shared_ptr; -/// \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 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 const& remote_serve_addr, - MultiRepoRemoteAuthArguments const& auth) -> ServeApi::Ptr; + MultiRepoRemoteAuthArguments const& auth) -> bool; } // namespace Utils -- cgit v1.2.3