summaryrefslogtreecommitdiff
path: root/src/buildtool/execution_api/execution_service/server_implementation.hpp
diff options
context:
space:
mode:
authorOliver Reiche <oliver.reiche@huawei.com>2025-06-23 12:00:03 +0200
committerOliver Reiche <oliver.reiche@huawei.com>2025-06-24 12:56:57 +0200
commitc49f9e8a16997d7dc4cad691a249741146101be0 (patch)
tree8e3112e5831a13ce1558bc039ea8ca85f42a8799 /src/buildtool/execution_api/execution_service/server_implementation.hpp
parent778656381c8c05d88453140612b4053dbc2ce787 (diff)
downloadjustbuild-c49f9e8a16997d7dc4cad691a249741146101be0.tar.gz
ExecutionService: Use LocalApi directly
Diffstat (limited to 'src/buildtool/execution_api/execution_service/server_implementation.hpp')
-rw-r--r--src/buildtool/execution_api/execution_service/server_implementation.hpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/buildtool/execution_api/execution_service/server_implementation.hpp b/src/buildtool/execution_api/execution_service/server_implementation.hpp
index 581365ff..4abf744f 100644
--- a/src/buildtool/execution_api/execution_service/server_implementation.hpp
+++ b/src/buildtool/execution_api/execution_service/server_implementation.hpp
@@ -20,10 +20,11 @@
#include <string>
#include "gsl/gsl"
-#include "src/buildtool/execution_api/common/api_bundle.hpp"
#include "src/buildtool/execution_api/local/context.hpp"
#include "src/buildtool/execution_api/remote/context.hpp"
+class LocalApi;
+
class ServerImpl final {
public:
[[nodiscard]] static auto Create(
@@ -44,12 +45,11 @@ class ServerImpl final {
/// \brief Start the execution service.
/// \param local_context The LocalContext to be used.
/// \param remote_context The RemoteContext to be used.
- /// \param apis Apis to be used, only local api is actually
- /// needed.
+ /// \param local_api The LocalApi used.
/// \param op_exponent Log2 threshold for operation cache.
auto Run(gsl::not_null<LocalContext const*> const& local_context,
gsl::not_null<RemoteContext const*> const& remote_context,
- ApiBundle const& apis,
+ gsl::not_null<LocalApi const*> const& local_api,
std::optional<std::uint8_t> op_exponent) -> bool;
private: