activity_catalog_build.h 705 B

123456789101112131415
  1. #pragma once
  2. #include "../../../middleware/content/packages/reader/reader.h"
  3. namespace sunrise::client::content::activity {
  4. /**
  5. * Extracts and publishes optional launcher data once on the investment worker.
  6. * @param source Installed package source; no file is created or modified.
  7. * @param scratch Worker-owned reader storage, reused only by this caller.
  8. * @return True when the immutable catalog is ready; failure settles the optional startup work.
  9. */
  10. [[nodiscard]] bool build_catalog(const middleware::content::packages::reader::Source& source,
  11. middleware::content::packages::reader::Scratch& scratch) noexcept;
  12. } // namespace sunrise::client::content::activity