ProcUIStatus ProcUIProcessMessages(BOOL block)
Main runloop for ProcUI.
ProcUIStatus ProcUISubProcessMessages(BOOL block)
ProcUIProcessMessages(), but for secondary cores.
The application is in the foreground. All resources may be used.
void ProcUIInitEx(ProcUISaveCallbackEx saveCallback, void *arg)
Initialises the ProcUI library for use; using a save callback that takes arguments.
void ProcUIRegisterCallbackCore(ProcUICallbackType type, ProcUICallback callback, void *param, uint32_t priority, uint32_t core)
Register a callback for certain ProcUI events, executed on the given core.
Application must release the foreground.
uint32_t(* ProcUISaveCallbackEx)(void *)
Called when the application needs to save.
The application must release all resources (including ProcUI) and quit.
void(* ProcUISaveCallback)(void)
Called when the application needs to save.
BOOL ProcUIInShutdown()
Determines whether the application is in shutdown and should quit.
The application is in the background, only limited resources are usable.
void ProcUIClearCallbacks()
Unregister all ProcUI callbacks.
Application must stop using networking.
BOOL ProcUIInForeground()
Determines whether the application is in the foreground.
The user attempted to press the HOME button but was denied.
void ProcUISetSaveCallback(ProcUISaveCallbackEx saveCallback, void *arg)
Sets the save callback.
uint32_t(* ProcUICallback)(void *)
Generic ProcUI callback.
BOOL ProcUIIsRunning()
Determines whether the application is running.
void ProcUIInit(ProcUISaveCallback saveCallback)
Initialises the ProcUI library for use.
Application acquires the foreground.
void ProcUIRegisterCallback(ProcUICallbackType type, ProcUICallback callback, void *param, uint32_t priority)
Register a callback for certain ProcUI events.
void ProcUIDrawDoneRelease()
Signifies to ProcUI that the current application has released all foreground resources, drawn its last frame, and is ready to be moved into the background.
Application may start using networking.
uint32_t ProcUICalcMemorySize(uint32_t unk)
void ProcUIShutdown()
Shut down the ProcUI library for the current application.
The application must release the foregound - see ProcUIDrawDoneRelease()