forked from Mirror/Ryujinx
560ccbeb2d
* Refactoring commands handling - Use Reflection to handle commands ID. - Add all symbols (from SwIPC so not all time accurate). - Re-sort some services commands methods. - Some cleanup. - Keep some empty constructor for consistency. * Fix order in IProfile
29 lines
No EOL
874 B
C#
29 lines
No EOL
874 B
C#
namespace Ryujinx.HLE.HOS.Services.Pctl
|
|
{
|
|
[Service("pctl")]
|
|
[Service("pctl:a")]
|
|
[Service("pctl:r")]
|
|
[Service("pctl:s")]
|
|
class IParentalControlServiceFactory : IpcService
|
|
{
|
|
public IParentalControlServiceFactory(ServiceCtx context) { }
|
|
|
|
[Command(0)]
|
|
// CreateService(u64, pid) -> object<nn::pctl::detail::ipc::IParentalControlService>
|
|
public long CreateService(ServiceCtx context)
|
|
{
|
|
MakeObject(context, new IParentalControlService());
|
|
|
|
return 0;
|
|
}
|
|
|
|
[Command(1)] // 4.0.0+
|
|
// CreateServiceWithoutInitialize(u64, pid) -> object<nn::pctl::detail::ipc::IParentalControlService>
|
|
public long CreateServiceWithoutInitialize(ServiceCtx context)
|
|
{
|
|
MakeObject(context, new IParentalControlService(false));
|
|
|
|
return 0;
|
|
}
|
|
}
|
|
} |