wut  1.0.0-beta9
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 
ProcUIIsRunning
BOOL ProcUIIsRunning()
Determines whether the application is running.
PROCUI_STATUS_IN_FOREGROUND
@ PROCUI_STATUS_IN_FOREGROUND
The application is in the foreground. All resources may be used.
Definition: procui.h:77
PROCUI_CALLBACK_NET_IO_START
@ PROCUI_CALLBACK_NET_IO_START
Application may start using networking.
Definition: procui.h:67
PROCUI_CALLBACK_EXIT
@ PROCUI_CALLBACK_EXIT
Application must exit.
Definition: procui.h:65
ProcUISaveCallbackEx
uint32_t(* ProcUISaveCallbackEx)(void *)
Called when the application needs to save.
Definition: procui.h:51
PROCUI_CALLBACK_RELEASE
@ PROCUI_CALLBACK_RELEASE
Application must release the foreground.
Definition: procui.h:63
ProcUIRegisterCallback
void ProcUIRegisterCallback(ProcUICallbackType type, ProcUICallback callback, void *param, uint32_t priority)
Register a callback for certain ProcUI events.
PROCUI_STATUS_RELEASE_FOREGROUND
@ PROCUI_STATUS_RELEASE_FOREGROUND
The application must release the foregound - see ProcUIDrawDoneRelease()
Definition: procui.h:81
ProcUIProcessMessages
ProcUIStatus ProcUIProcessMessages(BOOL block)
Main runloop for ProcUI.
wut.h
ProcUIShutdown
void ProcUIShutdown()
Shut down the ProcUI library for the current application.
PROCUI_CALLBACK_HOME_BUTTON_DENIED
@ PROCUI_CALLBACK_HOME_BUTTON_DENIED
The user attempted to press the HOME button but was denied.
Definition: procui.h:71
ProcUIInShutdown
BOOL ProcUIInShutdown()
Determines whether the application is in shutdown and should quit.
ProcUIClearCallbacks
void ProcUIClearCallbacks()
Unregister all ProcUI callbacks.
ProcUICalcMemorySize
uint32_t ProcUICalcMemorySize(uint32_t unk)
PROCUI_STATUS_EXITING
@ PROCUI_STATUS_EXITING
The application must release all resources (including ProcUI) and quit.
Definition: procui.h:83
ProcUISetSaveCallback
void ProcUISetSaveCallback(ProcUISaveCallbackEx saveCallback, void *arg)
Sets the save callback.
ProcUICallbackType
ProcUICallbackType
Definition: procui.h:58
ProcUICallback
uint32_t(* ProcUICallback)(void *)
Generic ProcUI callback.
Definition: procui.h:56
ProcUIInitEx
void ProcUIInitEx(ProcUISaveCallbackEx saveCallback, void *arg)
Initialises the ProcUI library for use; using a save callback that takes arguments.
ProcUISaveCallback
void(* ProcUISaveCallback)(void)
Called when the application needs to save.
Definition: procui.h:46
ProcUIRegisterCallbackCore
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.
ProcUIInForeground
BOOL ProcUIInForeground()
Determines whether the application is in the foreground.
PROCUI_CALLBACK_NET_IO_STOP
@ PROCUI_CALLBACK_NET_IO_STOP
Application must stop using networking.
Definition: procui.h:69
PROCUI_STATUS_IN_BACKGROUND
@ PROCUI_STATUS_IN_BACKGROUND
The application is in the background, only limited resources are usable.
Definition: procui.h:79
BOOL
int32_t BOOL
Definition: wut_types.h:4
ProcUIStatus
ProcUIStatus
Definition: procui.h:74
ProcUIInit
void ProcUIInit(ProcUISaveCallback saveCallback)
Initialises the ProcUI library for use.
PROCUI_CALLBACK_ACQUIRE
@ PROCUI_CALLBACK_ACQUIRE
Application acquires the foreground.
Definition: procui.h:61
ProcUISubProcessMessages
ProcUIStatus ProcUISubProcessMessages(BOOL block)
ProcUIProcessMessages(), but for secondary cores.
ProcUIDrawDoneRelease
void ProcUIDrawDoneRelease()
Signifies to ProcUI that the current application has released all foreground resources,...