bcat_module.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
  2. // SPDX-License-Identifier: GPL-2.0-or-later
  3. #pragma once
  4. #include "core/hle/service/service.h"
  5. namespace Core {
  6. class System;
  7. }
  8. namespace Service {
  9. namespace FileSystem {
  10. class FileSystemController;
  11. } // namespace FileSystem
  12. namespace BCAT {
  13. class Backend;
  14. class Module final {
  15. public:
  16. class Interface : public ServiceFramework<Interface> {
  17. public:
  18. explicit Interface(Core::System& system_, std::shared_ptr<Module> module_,
  19. FileSystem::FileSystemController& fsc_, const char* name);
  20. ~Interface() override;
  21. void CreateBcatService(HLERequestContext& ctx);
  22. void CreateDeliveryCacheStorageService(HLERequestContext& ctx);
  23. void CreateDeliveryCacheStorageServiceWithApplicationId(HLERequestContext& ctx);
  24. protected:
  25. FileSystem::FileSystemController& fsc;
  26. std::shared_ptr<Module> module;
  27. std::unique_ptr<Backend> backend;
  28. };
  29. };
  30. void LoopProcess(Core::System& system);
  31. } // namespace BCAT
  32. } // namespace Service