wut  1.0.0-alpha
Wii U Toolchain
procui.h
Go to the documentation of this file.
1 #pragma once
2 #include <wut.h>
3 
39 #ifdef __cplusplus
40 extern "C" {
41 #endif
42 
46 typedef void (*ProcUISaveCallback)(void);
51 typedef uint32_t (*ProcUISaveCallbackEx)(void *);
56 typedef uint32_t (*ProcUICallback)(void *);
57 
58 typedef enum ProcUICallbackType
59 {
73 
74 typedef enum ProcUIStatus
75 {
84 } ProcUIStatus;
85 
86 uint32_t
87 ProcUICalcMemorySize(uint32_t unk);
88 
100 void
102 
125 void
127 
138 BOOL
140 
151 BOOL
153 
166 void
167 ProcUIInit(ProcUISaveCallback saveCallback);
168 
185 void
187  void *arg);
188 
199 BOOL
201 
230 
253 void
255  ProcUICallback callback,
256  void *param,
257  uint32_t priority);
258 
280 void
282  ProcUICallback callback,
283  void *param,
284  uint32_t priority,
285  uint32_t core);
286 
302 void
304  void *arg);
305 
314 void
316 
340 
341 #ifdef __cplusplus
342 }
343 #endif
344 
ProcUIStatus ProcUIProcessMessages(BOOL block)
Main runloop for ProcUI.
Application must exit.
Definition: procui.h:65
ProcUIStatus ProcUISubProcessMessages(BOOL block)
ProcUIProcessMessages(), but for secondary cores.
The application is in the foreground. All resources may be used.
Definition: procui.h:77
void ProcUIInitEx(ProcUISaveCallbackEx saveCallback, void *arg)
Initialises the ProcUI library for use; using a save callback that takes arguments.
ProcUIStatus
Definition: procui.h:74
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.
Definition: procui.h:63
uint32_t(* ProcUISaveCallbackEx)(void *)
Called when the application needs to save.
Definition: procui.h:51
The application must release all resources (including ProcUI) and quit.
Definition: procui.h:83
ProcUICallbackType
Definition: procui.h:58
void(* ProcUISaveCallback)(void)
Called when the application needs to save.
Definition: procui.h:46
BOOL ProcUIInShutdown()
Determines whether the application is in shutdown and should quit.
The application is in the background, only limited resources are usable.
Definition: procui.h:79
void ProcUIClearCallbacks()
Unregister all ProcUI callbacks.
Application must stop using networking.
Definition: procui.h:69
BOOL ProcUIInForeground()
Determines whether the application is in the foreground.
The user attempted to press the HOME button but was denied.
Definition: procui.h:71
void ProcUISetSaveCallback(ProcUISaveCallbackEx saveCallback, void *arg)
Sets the save callback.
uint32_t(* ProcUICallback)(void *)
Generic ProcUI callback.
Definition: procui.h:56
BOOL ProcUIIsRunning()
Determines whether the application is running.
void ProcUIInit(ProcUISaveCallback saveCallback)
Initialises the ProcUI library for use.
Application acquires the foreground.
Definition: procui.h:61
void ProcUIRegisterCallback(ProcUICallbackType type, ProcUICallback callback, void *param, uint32_t priority)
Register a callback for certain ProcUI events.
int32_t BOOL
Definition: wut_types.h:4
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.
Definition: procui.h:67
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()
Definition: procui.h:81