module.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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 Service {
  10. namespace FileSystem {
  11. class FileSystemController;
  12. } // namespace FileSystem
  13. namespace BCAT {
  14. class Backend;
  15. class Module final {
  16. public:
  17. class Interface : public ServiceFramework<Interface> {
  18. public:
  19. explicit Interface(Core::System& system_, std::shared_ptr<Module> module_,
  20. FileSystem::FileSystemController& fsc_, const char* name);
  21. ~Interface() override;
  22. void CreateBcatService(Kernel::HLERequestContext& ctx);
  23. void CreateDeliveryCacheStorageService(Kernel::HLERequestContext& ctx);
  24. void CreateDeliveryCacheStorageServiceWithApplicationId(Kernel::HLERequestContext& ctx);
  25. protected:
  26. FileSystem::FileSystemController& fsc;
  27. std::shared_ptr<Module> module;
  28. std::unique_ptr<Backend> backend;
  29. private:
  30. Core::System& system;
  31. };
  32. };
  33. /// Registers all BCAT services with the specified service manager.
  34. void InstallInterfaces(Core::System& system);
  35. } // namespace BCAT
  36. } // namespace Service