summaryrefslogtreecommitdiff
path: root/src/buildtool/execution_api/common/api_bundle.hpp
diff options
context:
space:
mode:
authorPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2024-07-08 15:24:57 +0200
committerPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2024-07-16 17:51:12 +0200
commit57b7ec186b740b94df030e2f064c28148dd30749 (patch)
treeddd445ceddf4b2d16c2749db04463354a691f3a9 /src/buildtool/execution_api/common/api_bundle.hpp
parent24c900225902337feee7a8cc4399fdffdecd945f (diff)
downloadjustbuild-57b7ec186b740b94df030e2f064c28148dd30749.tar.gz
Pass RemoteExecutionConfig instance to ApiBundle
...and store it as a const ref for subsequent use wherever the apis are already passed.
Diffstat (limited to 'src/buildtool/execution_api/common/api_bundle.hpp')
-rw-r--r--src/buildtool/execution_api/common/api_bundle.hpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/buildtool/execution_api/common/api_bundle.hpp b/src/buildtool/execution_api/common/api_bundle.hpp
index ca2e91d1..017154c1 100644
--- a/src/buildtool/execution_api/common/api_bundle.hpp
+++ b/src/buildtool/execution_api/common/api_bundle.hpp
@@ -24,6 +24,7 @@
#include "src/buildtool/common/repository_config.hpp"
#include "src/buildtool/execution_api/common/execution_api.hpp"
#include "src/buildtool/execution_api/local/config.hpp"
+#include "src/buildtool/execution_api/remote/config.hpp"
#include "src/buildtool/storage/config.hpp"
#include "src/buildtool/storage/storage.hpp"
@@ -37,13 +38,14 @@ struct ApiBundle final {
gsl::not_null<LocalExecutionConfig const*> const& local_exec_config,
RepositoryConfig const* repo_config,
gsl::not_null<Auth const*> const& authentication,
- std::optional<ServerAddress> const& remote_address);
+ gsl::not_null<RemoteExecutionConfig const*> const& remote_exec_config);
[[nodiscard]] auto CreateRemote(std::optional<ServerAddress> const& address)
const -> gsl::not_null<IExecutionApi::Ptr>;
gsl::not_null<IExecutionApi::Ptr> const local; // needed by remote
Auth const& auth; // needed by remote
+ RemoteExecutionConfig const& remote_config; // needed by remote
gsl::not_null<IExecutionApi::Ptr> const remote;
};