libnx  v4.2.0
pctl.h
Go to the documentation of this file.
1 /**
2  * @file pctl.h
3  * @brief Parental Controls service IPC wrapper.
4  * @author yellows8
5  * @copyright libnx Authors
6  */
7 
8 #pragma once
9 #include "../types.h"
10 #include "../sf/service.h"
11 
12 /// Initialize pctl.
14 
15 /// Exit pctl.
16 void pctlExit(void);
17 
18 /// Gets the Service object for the actual pctl service session.
20 
21 /// Gets the Service object for IParentalControlService.
23 
24 /// Confirm whether VrMode is allowed. Only available with [4.0.0+].
26 
27 /// Gets whether Parental Controls are enabled.
29 
30 /// Reset the confirmation done by \ref pctlConfirmStereoVisionPermission. Only available with [5.0.0+].
32 
33 /// Gets whether VrMode is allowed. Only available with [5.0.0+].
35 
pctlGetServiceSession
Service * pctlGetServiceSession(void)
Gets the Service object for the actual pctl service session.
pctlGetServiceSession_Service
Service * pctlGetServiceSession_Service(void)
Gets the Service object for IParentalControlService.
pctlConfirmStereoVisionPermission
Result pctlConfirmStereoVisionPermission(void)
Confirm whether VrMode is allowed. Only available with [4.0.0+].
Result
u32 Result
Function error code result type.
Definition: types.h:44
pctlResetConfirmedStereoVisionPermission
Result pctlResetConfirmedStereoVisionPermission(void)
Reset the confirmation done by pctlConfirmStereoVisionPermission. Only available with [5....
pctlIsRestrictionEnabled
Result pctlIsRestrictionEnabled(bool *flag)
Gets whether Parental Controls are enabled.
pctlExit
void pctlExit(void)
Exit pctl.
Service
Service object structure.
Definition: service.h:13
pctlInitialize
Result pctlInitialize(void)
Initialize pctl.
pctlIsStereoVisionPermitted
Result pctlIsStereoVisionPermitted(bool *flag)
Gets whether VrMode is allowed. Only available with [5.0.0+].