libnx  v4.7.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 "../kernel/event.h"
11 #include "../sf/service.h"
12 
13 typedef struct {
14  u8 rating_age;
15  bool sns_post_restriction;
16  bool free_communication_restriction;
18 
19 /// Initialize pctl.
21 
22 /// Exit pctl.
23 void pctlExit(void);
24 
25 /// Gets the Service object for the actual pctl service session.
27 
28 /// Gets the Service object for IParentalControlService.
30 
31 /// Gets whether Parental Controls restrictions are temporarily unlocked.
33 
34 /// Confirm whether VrMode is allowed. Only available with [4.0.0+].
36 
37 /// Gets whether Parental Controls are enabled.
39 
40 /// Gets whether Parental Controls are enabled.
41 Result pctlGetSafetyLevel(u32 *safety_level);
42 
43 /// Returns the current restrictions settings.
45 
46 /// Gets the count of applications that have free communication.
48 
49 /// Reset the confirmation done by \ref pctlConfirmStereoVisionPermission. Only available with [5.0.0+].
51 
52 /// Gets whether VrMode is allowed. Only available with [5.0.0+].
54 
55 /// Confirm whether pairing is active.
57 
58 /// Returns the synchronization event.
60 
61 /// Returns the supension event.
63 
64 /// Confirm whether play timer alarm is disabled. Only available with [4.0.0+].
66 
67 /// Returns the unlinked event.
Result pctlResetConfirmedStereoVisionPermission(void)
Reset the confirmation done by pctlConfirmStereoVisionPermission. Only available with [5....
Service * pctlGetServiceSession_Service(void)
Gets the Service object for IParentalControlService.
Result pctlInitialize(void)
Initialize pctl.
Result pctlGetSynchronizationEvent(Event *out_event)
Returns the synchronization event.
Result pctlGetUnlinkedEvent(Event *out_event)
Returns the unlinked event.
Result pctlGetFreeCommunicationApplicationListCount(u32 *count)
Gets the count of applications that have free communication.
Service * pctlGetServiceSession(void)
Gets the Service object for the actual pctl service session.
Result pctlGetPlayTimerEventToRequestSuspension(Event *out_event)
Returns the supension event.
Result pctlIsRestrictionTemporaryUnlocked(bool *flag)
Gets whether Parental Controls restrictions are temporarily unlocked.
Result pctlConfirmStereoVisionPermission(void)
Confirm whether VrMode is allowed. Only available with [4.0.0+].
Result pctlGetSafetyLevel(u32 *safety_level)
Gets whether Parental Controls are enabled.
Result pctlIsPairingActive(bool *flag)
Confirm whether pairing is active.
Result pctlIsRestrictionEnabled(bool *flag)
Gets whether Parental Controls are enabled.
void pctlExit(void)
Exit pctl.
Result pctlIsStereoVisionPermitted(bool *flag)
Gets whether VrMode is allowed. Only available with [5.0.0+].
Result pctlGetCurrentSettings(PctlRestrictionSettings *settings)
Returns the current restrictions settings.
Result pctlIsPlayTimerAlarmDisabled(bool *flag)
Confirm whether play timer alarm is disabled. Only available with [4.0.0+].
Kernel-mode event structure.
Definition: event.h:13
Definition: pctl.h:13
Service object structure.
Definition: service.h:14
uint8_t u8
8-bit unsigned integer.
Definition: types.h:19
u32 Result
Function error code result type.
Definition: types.h:44
uint32_t u32
32-bit unsigned integer.
Definition: types.h:21