diff options
author | Klaus Aehlig <klaus.aehlig@huawei.com> | 2025-03-17 14:31:58 +0100 |
---|---|---|
committer | Klaus Aehlig <klaus.aehlig@huawei.com> | 2025-03-17 17:19:55 +0100 |
commit | b1ccb71a4bdbacd44843abfa9497576016962ed8 (patch) | |
tree | 8067a825669baf7ca2dfd98f43da9d6c70c3e23f /src/buildtool/execution_api/common/execution_response.hpp | |
parent | dd02daeb0ce20780ed96c4ab2738a7f2b8b986e5 (diff) | |
download | justbuild-b1ccb71a4bdbacd44843abfa9497576016962ed8.tar.gz |
execution_api: support reading off stdout/stderr digests
Diffstat (limited to 'src/buildtool/execution_api/common/execution_response.hpp')
-rw-r--r-- | src/buildtool/execution_api/common/execution_response.hpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/buildtool/execution_api/common/execution_response.hpp b/src/buildtool/execution_api/common/execution_response.hpp index 9899584f..882750fe 100644 --- a/src/buildtool/execution_api/common/execution_response.hpp +++ b/src/buildtool/execution_api/common/execution_response.hpp @@ -17,12 +17,14 @@ #include <cstdint> #include <memory> +#include <optional> #include <string> #include <unordered_map> #include <unordered_set> #include "gsl/gsl" #include "src/buildtool/common/artifact.hpp" +#include "src/buildtool/common/artifact_digest.hpp" #include "src/utils/cpp/expected.hpp" /// \brief Abstract response. @@ -54,6 +56,12 @@ class IExecutionResponse { [[nodiscard]] virtual auto HasStdOut() const noexcept -> bool = 0; + [[nodiscard]] virtual auto StdErrDigest() noexcept + -> std::optional<ArtifactDigest> = 0; + + [[nodiscard]] virtual auto StdOutDigest() noexcept + -> std::optional<ArtifactDigest> = 0; + [[nodiscard]] virtual auto StdErr() noexcept -> std::string = 0; [[nodiscard]] virtual auto StdOut() noexcept -> std::string = 0; |