activity_sdk_generation_report.h 740 B

123456789101112131415161718192021222324
  1. #pragma once
  2. #include <cstddef>
  3. #include <cstdint>
  4. namespace sunrise::client::content::activity::sdk_generation {
  5. /** One finished generation pass, in the exact terms its log line reports. */
  6. struct PassResult final {
  7. std::size_t scenarios{};
  8. std::size_t activityRoots{};
  9. std::size_t activityVariants{};
  10. std::size_t built{};
  11. std::size_t reused{};
  12. /** Short stable token naming the stage that refused. Empty on success. */
  13. const char* detail{};
  14. std::uint32_t failureScenario{};
  15. bool complete{};
  16. };
  17. /** Writes one bounded completion line without exposing package-key material. */
  18. void report_result(const PassResult& result) noexcept;
  19. } // namespace sunrise::client::content::activity::sdk_generation