build.h 878 B

12345678910111213141516171819202122232425
  1. #pragma once
  2. namespace sunrise::client::content::items::packages {
  3. /** @return True when every package-owned domain is published. */
  4. [[nodiscard]] bool ready() noexcept;
  5. /**
  6. * Publishes the dense item table from the installed packages, once.
  7. * @return True when State already holds the table or a full pass publishes it.
  8. */
  9. [[nodiscard]] bool build() noexcept;
  10. /**
  11. * Reports whether the pass can read anything yet.
  12. * It needs the bootstrap token and the installed key table, both published before the Client
  13. * worker starts. Until both are there, every call returns at once.
  14. * @return True when the block keys the pass borrows are there.
  15. */
  16. [[nodiscard]] bool readable() noexcept;
  17. /** Exports once at Client activation only when the startup setting requests it. */
  18. void export_keys_if_requested() noexcept;
  19. } // namespace sunrise::client::content::items::packages