2019-07-18 04:04:00 +01:00
|
|
|
/**
|
|
|
|
* @file pm_ams.h
|
|
|
|
* @brief Process Manager (pm:*) IPC wrapper for Atmosphere extensions.
|
|
|
|
* @author SciresM
|
|
|
|
* @copyright libnx Authors
|
|
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <switch.h>
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2019-11-21 12:03:19 +00:00
|
|
|
typedef struct {
|
|
|
|
u64 keys_held;
|
|
|
|
u64 flags;
|
|
|
|
} CfgOverrideStatus;
|
|
|
|
|
2019-10-28 04:43:01 +00:00
|
|
|
Result pminfoAtmosphereGetProcessId(u64 *out_pid, u64 program_id);
|
|
|
|
Result pminfoAtmosphereHasLaunchedProgram(bool *out, u64 program_id);
|
2019-11-21 12:03:19 +00:00
|
|
|
Result pminfoAtmosphereGetProcessInfo(NcmProgramLocation *loc_out, CfgOverrideStatus *status_out, u64 pid);
|
2019-07-18 04:04:00 +01:00
|
|
|
|
2019-11-21 12:03:19 +00:00
|
|
|
Result pmdmntAtmosphereGetProcessInfo(Handle *out, NcmProgramLocation *loc_out, CfgOverrideStatus *status_out, u64 pid);
|
2019-09-16 09:22:08 +01:00
|
|
|
Result pmdmntAtmosphereGetCurrentLimitInfo(u64 *out_cur, u64 *out_lim, u32 group, u32 resource);
|
|
|
|
|
2019-07-18 04:04:00 +01:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|