IServiceCreator.cs 991 B

123456789101112131415161718192021222324252627282930313233
  1. namespace Ryujinx.HLE.HOS.Services.Bcat
  2. {
  3. [Service("bcat:a")]
  4. [Service("bcat:m")]
  5. [Service("bcat:u")]
  6. [Service("bcat:s")]
  7. class IServiceCreator : IpcService
  8. {
  9. public IServiceCreator(ServiceCtx context) { }
  10. [Command(0)]
  11. // CreateBcatService(u64, pid) -> object<nn::bcat::detail::ipc::IBcatService>
  12. public ResultCode CreateBcatService(ServiceCtx context)
  13. {
  14. long id = context.RequestData.ReadInt64();
  15. MakeObject(context, new IBcatService());
  16. return ResultCode.Success;
  17. }
  18. [Command(1)]
  19. // CreateDeliveryCacheStorageService(u64, pid) -> object<nn::bcat::detail::ipc::IDeliveryCacheStorageService>
  20. public ResultCode CreateDeliveryCacheStorageService(ServiceCtx context)
  21. {
  22. long id = context.RequestData.ReadInt64();
  23. MakeObject(context, new IDeliveryCacheStorageService());
  24. return ResultCode.Success;
  25. }
  26. }
  27. }