diff options
author | Maksim Denisov <denisov.maksim@huawei.com> | 2024-06-20 09:36:36 +0200 |
---|---|---|
committer | Maksim Denisov <denisov.maksim@huawei.com> | 2024-06-25 13:59:48 +0200 |
commit | 18092e2ff2d33f9f7c25eec995ffb4ac824fe96c (patch) | |
tree | 7f2a63695c2ede7dfbcb94d444199af220f12ae2 /src/other_tools/just_mr/setup_utils.hpp | |
parent | 31731a01b497dd7c14acc8e1910dc0b0b28a9052 (diff) | |
download | justbuild-18092e2ff2d33f9f7c25eec995ffb4ac824fe96c.tar.gz |
Use ApiBundle for creation of APIs in just-mr
Diffstat (limited to 'src/other_tools/just_mr/setup_utils.hpp')
-rw-r--r-- | src/other_tools/just_mr/setup_utils.hpp | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/other_tools/just_mr/setup_utils.hpp b/src/other_tools/just_mr/setup_utils.hpp index cc3ab86a..f29dbef1 100644 --- a/src/other_tools/just_mr/setup_utils.hpp +++ b/src/other_tools/just_mr/setup_utils.hpp @@ -23,7 +23,6 @@ #include "src/buildtool/build_engine/expression/configuration.hpp" #include "src/buildtool/build_engine/expression/expression_ptr.hpp" -#include "src/buildtool/execution_api/common/execution_api.hpp" #include "src/buildtool/serve_api/remote/config.hpp" #include "src/other_tools/just_mr/cli.hpp" @@ -61,12 +60,9 @@ void DefaultReachableRepositories( std::optional<std::filesystem::path> const& absent_file_opt) noexcept -> std::shared_ptr<Configuration>; -/// \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, - std::optional<std::string> const& remote_serve_addr, - MultiRepoRemoteAuthArguments const& auth) noexcept -> IExecutionApi::Ptr; +void SetupRemoteConfig(std::optional<std::string> const& remote_exec_addr, + std::optional<std::string> const& remote_serve_addr, + MultiRepoRemoteAuthArguments const& auth) noexcept; /// \brief Setup of a 'just serve' remote API based on just-mr arguments. /// \returns RemoteServeConfig if initialization was successfull or std::nullopt |