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