2018-08-16 19:47:36 -04:00
|
|
|
namespace Ryujinx.HLE.HOS.Services.Am
|
2018-02-09 19:14:55 -05:00
|
|
|
{
|
2018-03-19 14:58:46 -04:00
|
|
|
class IApplicationProxy : IpcService
|
2018-02-09 19:14:55 -05:00
|
|
|
{
|
2019-07-11 21:13:43 -04:00
|
|
|
public IApplicationProxy() { }
|
2018-02-09 19:14:55 -05:00
|
|
|
|
2019-07-11 21:13:43 -04:00
|
|
|
[Command(0)]
|
|
|
|
// GetCommonStateGetter() -> object<nn::am::service::ICommonStateGetter>
|
2018-12-06 06:16:24 -05:00
|
|
|
public long GetCommonStateGetter(ServiceCtx context)
|
2018-02-09 19:14:55 -05:00
|
|
|
{
|
2018-12-06 06:16:24 -05:00
|
|
|
MakeObject(context, new ICommonStateGetter(context.Device.System));
|
2018-02-09 19:14:55 -05:00
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2019-07-11 21:13:43 -04:00
|
|
|
[Command(1)]
|
|
|
|
// GetSelfController() -> object<nn::am::service::ISelfController>
|
2018-12-06 06:16:24 -05:00
|
|
|
public long GetSelfController(ServiceCtx context)
|
2018-02-09 19:14:55 -05:00
|
|
|
{
|
2018-12-06 06:16:24 -05:00
|
|
|
MakeObject(context, new ISelfController(context.Device.System));
|
2018-02-09 19:14:55 -05:00
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2019-07-11 21:13:43 -04:00
|
|
|
[Command(2)]
|
|
|
|
// GetWindowController() -> object<nn::am::service::IWindowController>
|
2018-12-06 06:16:24 -05:00
|
|
|
public long GetWindowController(ServiceCtx context)
|
2018-02-09 19:14:55 -05:00
|
|
|
{
|
2018-12-06 06:16:24 -05:00
|
|
|
MakeObject(context, new IWindowController());
|
2018-02-09 19:14:55 -05:00
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2019-07-11 21:13:43 -04:00
|
|
|
[Command(3)]
|
|
|
|
// GetAudioController() -> object<nn::am::service::IAudioController>
|
2018-12-06 06:16:24 -05:00
|
|
|
public long GetAudioController(ServiceCtx context)
|
2018-02-09 19:14:55 -05:00
|
|
|
{
|
2018-12-06 06:16:24 -05:00
|
|
|
MakeObject(context, new IAudioController());
|
2018-02-09 19:14:55 -05:00
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2019-07-11 21:13:43 -04:00
|
|
|
[Command(4)]
|
|
|
|
// GetDisplayController() -> object<nn::am::service::IDisplayController>
|
2018-12-06 06:16:24 -05:00
|
|
|
public long GetDisplayController(ServiceCtx context)
|
2018-02-09 19:14:55 -05:00
|
|
|
{
|
2018-12-06 06:16:24 -05:00
|
|
|
MakeObject(context, new IDisplayController());
|
2018-02-09 19:14:55 -05:00
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2019-07-11 21:13:43 -04:00
|
|
|
[Command(11)]
|
|
|
|
// GetLibraryAppletCreator() -> object<nn::am::service::ILibraryAppletCreator>
|
2018-12-06 06:16:24 -05:00
|
|
|
public long GetLibraryAppletCreator(ServiceCtx context)
|
2018-02-09 19:14:55 -05:00
|
|
|
{
|
2018-12-06 06:16:24 -05:00
|
|
|
MakeObject(context, new ILibraryAppletCreator());
|
2018-02-09 19:14:55 -05:00
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2019-07-11 21:13:43 -04:00
|
|
|
[Command(20)]
|
|
|
|
// GetApplicationFunctions() -> object<nn::am::service::IApplicationFunctions>
|
2018-12-06 06:16:24 -05:00
|
|
|
public long GetApplicationFunctions(ServiceCtx context)
|
2018-02-09 19:14:55 -05:00
|
|
|
{
|
2018-12-06 06:16:24 -05:00
|
|
|
MakeObject(context, new IApplicationFunctions());
|
2018-02-09 19:14:55 -05:00
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2019-07-11 21:13:43 -04:00
|
|
|
[Command(1000)]
|
|
|
|
// GetDebugFunctions() -> object<nn::am::service::IDebugFunctions>
|
2018-12-06 06:16:24 -05:00
|
|
|
public long GetDebugFunctions(ServiceCtx context)
|
2018-02-09 19:14:55 -05:00
|
|
|
{
|
2018-12-06 06:16:24 -05:00
|
|
|
MakeObject(context, new IDebugFunctions());
|
2018-02-09 19:14:55 -05:00
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|