9 #include "../sf/service.h"
10 #include "../sf/tipc.h"
11 #include "../services/ncm_types.h"
12 #include "../services/pm.h"
16 PglLaunchFlag_None = 0,
17 PglLaunchFlag_EnableDetailedCrashReport =
BIT(0),
18 PglLaunchFlag_EnableCrashReportScreenShotForProduction =
BIT(1),
19 PglLaunchFlag_EnableCrashReportScreenShotForDevelop =
BIT(2),
24 PglSnapShotDumpType_None = 0,
25 PglSnapShotDumpType_Auto = 1,
26 PglSnapShotDumpType_Full = 2,
56 Result pglLaunchProgramFromHost(
u64 *out_pid,
const char *content_path,
u32 pm_launch_flags);
58 Result pglGetApplicationProcessId(
u64 *out);
59 Result pglBoostSystemMemoryResourceLimit(
u64 size);
60 Result pglIsProcessTracked(
bool *out,
u64 pid);
61 Result pglEnableApplicationCrashReport(
bool en);
62 Result pglIsApplicationCrashReportEnabled(
bool *out);
63 Result pglEnableApplicationAllThreadDumpOnCrash(
bool en);
Result pglInitialize(void)
Initialize pgl.
void pglExit(void)
Exit pgl.
TipcService * pglGetServiceSessionTipc(void)
Gets the TipcService object for the actual pgl service session. Requires 12.0.0+.
Service * pglGetServiceSessionCmif(void)
Gets the Service object for the actual pgl service session. Requires < 12.0.0.
PglSnapShotDumpType
SnapShotDumpType.
Definition: pgl.h:23
PglLaunchFlag
LaunchFlag.
Definition: pgl.h:15
Kernel-mode event structure.
Definition: event.h:13
ProgramLocation.
Definition: ncm_types.h:173
u32 version
Version.
Definition: pgl.h:31
u8 id_offset
Id Offset.
Definition: pgl.h:33
u64 id
Program Id.
Definition: pgl.h:30
u8 content_type
NcmContentType.
Definition: pgl.h:32
ProcessEventInfo.
Definition: pm.h:48
Service object structure.
Definition: service.h:14
tipc Service object structure
Definition: tipc.h:18
#define BIT(n)
Creates a bitmask from a bit number.
Definition: types.h:54
uint64_t u64
64-bit unsigned integer.
Definition: types.h:22
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