2018-08-16 23:47:36 +00:00
|
|
|
namespace Ryujinx.HLE.HOS.Services.Pctl
|
2018-02-10 00:14:55 +00:00
|
|
|
{
|
2019-07-10 15:59:54 +00:00
|
|
|
[Service("pctl")]
|
|
|
|
[Service("pctl:a")]
|
|
|
|
[Service("pctl:r")]
|
|
|
|
[Service("pctl:s")]
|
2018-04-06 04:01:52 +00:00
|
|
|
class IParentalControlServiceFactory : IpcService
|
2018-02-10 00:14:55 +00:00
|
|
|
{
|
2019-07-12 01:13:43 +00:00
|
|
|
public IParentalControlServiceFactory(ServiceCtx context) { }
|
2018-02-10 00:14:55 +00:00
|
|
|
|
2019-07-12 01:13:43 +00:00
|
|
|
[Command(0)]
|
|
|
|
// CreateService(u64, pid) -> object<nn::pctl::detail::ipc::IParentalControlService>
|
2018-12-06 11:16:24 +00:00
|
|
|
public long CreateService(ServiceCtx context)
|
2018-02-10 00:14:55 +00:00
|
|
|
{
|
2018-12-06 11:16:24 +00:00
|
|
|
MakeObject(context, new IParentalControlService());
|
2018-02-25 04:34:16 +00:00
|
|
|
|
2018-02-10 00:14:55 +00:00
|
|
|
return 0;
|
|
|
|
}
|
2018-06-12 18:28:45 +00:00
|
|
|
|
2019-07-12 01:13:43 +00:00
|
|
|
[Command(1)] // 4.0.0+
|
|
|
|
// CreateServiceWithoutInitialize(u64, pid) -> object<nn::pctl::detail::ipc::IParentalControlService>
|
2018-12-06 11:16:24 +00:00
|
|
|
public long CreateServiceWithoutInitialize(ServiceCtx context)
|
2018-06-12 18:28:45 +00:00
|
|
|
{
|
2018-12-06 11:16:24 +00:00
|
|
|
MakeObject(context, new IParentalControlService(false));
|
2018-06-12 18:28:45 +00:00
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2018-02-10 00:14:55 +00:00
|
|
|
}
|
|
|
|
}
|