aoc_u.h 998 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. // Copyright 2018 yuzu emulator team
  2. // Licensed under GPLv2 or any later version
  3. // Refer to the license.txt file included.
  4. #pragma once
  5. #include "core/hle/service/service.h"
  6. namespace Core {
  7. class System;
  8. }
  9. namespace Kernel {
  10. class WritableEvent;
  11. }
  12. namespace Service::AOC {
  13. class AOC_U final : public ServiceFramework<AOC_U> {
  14. public:
  15. explicit AOC_U(Core::System& system);
  16. ~AOC_U() override;
  17. private:
  18. void CountAddOnContent(Kernel::HLERequestContext& ctx);
  19. void ListAddOnContent(Kernel::HLERequestContext& ctx);
  20. void GetAddOnContentBaseId(Kernel::HLERequestContext& ctx);
  21. void PrepareAddOnContent(Kernel::HLERequestContext& ctx);
  22. void GetAddOnContentListChangedEvent(Kernel::HLERequestContext& ctx);
  23. std::vector<u64> add_on_content;
  24. Kernel::EventPair aoc_change_event;
  25. };
  26. /// Registers all AOC services with the specified service manager.
  27. void InstallInterfaces(SM::ServiceManager& service_manager, Core::System& system);
  28. } // namespace Service::AOC