This repository has been archived on 2022-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
Luma3DS-3GX/sysmodules/pm/source/manager.h
2019-03-29 00:32:45 +01:00

24 lines
642 B
C

#pragma once
#include <3ds/types.h>
#include "process_data.h"
typedef struct Manager {
ProcessList processList;
ProcessData *runningApplicationData;
ProcessData *debugData; // note: official PM uses runningApplicationData for both, and has queuedApplicationProcessHandle
Handle reslimits[4];
Handle newProcessEvent;
Handle allNotifiedTerminationEvent;
bool waitingForTermination;
bool preparingForReboot;
u8 maxAppCpuTime;
s8 cpuTimeBase;
} Manager;
extern Manager g_manager;
void Manager_Init(void *procBuf, size_t numProc);
void Manager_RegisterKips(void);
Result UnregisterProcess(u64 titleId);