module.h 748 B

12345678910111213141516171819202122232425262728
  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 Service::PCTL {
  7. class Module final {
  8. public:
  9. class Interface : public ServiceFramework<Interface> {
  10. public:
  11. explicit Interface(std::shared_ptr<Module> module, const char* name);
  12. void CreateService(Kernel::HLERequestContext& ctx);
  13. void CreateServiceWithoutInitialize(Kernel::HLERequestContext& ctx);
  14. protected:
  15. std::shared_ptr<Module> module;
  16. };
  17. };
  18. /// Registers all PCTL services with the specified service manager.
  19. void InstallInterfaces(SM::ServiceManager& service_manager);
  20. } // namespace Service::PCTL