IApplicationProxy.cs 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. namespace Ryujinx.HLE.HOS.Services.Am
  2. {
  3. class IApplicationProxy : IpcService
  4. {
  5. public IApplicationProxy() { }
  6. [Command(0)]
  7. // GetCommonStateGetter() -> object<nn::am::service::ICommonStateGetter>
  8. public ResultCode GetCommonStateGetter(ServiceCtx context)
  9. {
  10. MakeObject(context, new ICommonStateGetter(context.Device.System));
  11. return ResultCode.Success;
  12. }
  13. [Command(1)]
  14. // GetSelfController() -> object<nn::am::service::ISelfController>
  15. public ResultCode GetSelfController(ServiceCtx context)
  16. {
  17. MakeObject(context, new ISelfController(context.Device.System));
  18. return ResultCode.Success;
  19. }
  20. [Command(2)]
  21. // GetWindowController() -> object<nn::am::service::IWindowController>
  22. public ResultCode GetWindowController(ServiceCtx context)
  23. {
  24. MakeObject(context, new IWindowController());
  25. return ResultCode.Success;
  26. }
  27. [Command(3)]
  28. // GetAudioController() -> object<nn::am::service::IAudioController>
  29. public ResultCode GetAudioController(ServiceCtx context)
  30. {
  31. MakeObject(context, new IAudioController());
  32. return ResultCode.Success;
  33. }
  34. [Command(4)]
  35. // GetDisplayController() -> object<nn::am::service::IDisplayController>
  36. public ResultCode GetDisplayController(ServiceCtx context)
  37. {
  38. MakeObject(context, new IDisplayController());
  39. return ResultCode.Success;
  40. }
  41. [Command(11)]
  42. // GetLibraryAppletCreator() -> object<nn::am::service::ILibraryAppletCreator>
  43. public ResultCode GetLibraryAppletCreator(ServiceCtx context)
  44. {
  45. MakeObject(context, new ILibraryAppletCreator());
  46. return ResultCode.Success;
  47. }
  48. [Command(20)]
  49. // GetApplicationFunctions() -> object<nn::am::service::IApplicationFunctions>
  50. public ResultCode GetApplicationFunctions(ServiceCtx context)
  51. {
  52. MakeObject(context, new IApplicationFunctions());
  53. return ResultCode.Success;
  54. }
  55. [Command(1000)]
  56. // GetDebugFunctions() -> object<nn::am::service::IDebugFunctions>
  57. public ResultCode GetDebugFunctions(ServiceCtx context)
  58. {
  59. MakeObject(context, new IDebugFunctions());
  60. return ResultCode.Success;
  61. }
  62. }
  63. }