proc_ui: Add ProcUIRegisterCallback{Core}.

This commit is contained in:
James Benton 2017-05-10 17:21:57 +01:00
parent fcafa791b3
commit 8c93d5b3c8
2 changed files with 27 additions and 2 deletions

View File

@ -12,8 +12,18 @@ extern "C" {
#endif
typedef void (*ProcUISaveCallback)(void);
typedef uint32_t (*ProcUISaveCallbackEx)(void*);
typedef uint32_t (*ProcUICallback)(void*);
typedef uint32_t (*ProcUISaveCallbackEx)(void *);
typedef uint32_t (*ProcUICallback)(void *);
typedef enum ProcUICallbackType
{
PROCUI_CALLBACK_ACQUIRE,
PROCUI_CALLBACK_RELEASE,
PROCUI_CALLBACK_EXIT,
PROCUI_CALLBACK_NET_IO_START,
PROCUI_CALLBACK_NET_IO_STOP,
PROCUI_CALLBACK_HOME_BUTTON_DENIED,
} ProcUICallbackType;
typedef enum ProcUIStatus
{
@ -51,6 +61,19 @@ ProcUIIsRunning();
ProcUIStatus
ProcUIProcessMessages(BOOL block);
void
ProcUIRegisterCallback(ProcUICallbackType type,
ProcUICallback callback,
void *param,
uint32_t priority);
void
ProcUIRegisterCallbackCore(ProcUICallbackType type,
ProcUICallback callback,
void *param,
uint32_t priority,
uint32_t core);
void
ProcUISetSaveCallback(ProcUISaveCallbackEx saveCallback,
void *arg);

View File

@ -8,6 +8,8 @@ EXPORT(ProcUIInit);
EXPORT(ProcUIInitEx);
EXPORT(ProcUIIsRunning);
EXPORT(ProcUIProcessMessages);
EXPORT(ProcUIRegisterCallback);
EXPORT(ProcUIRegisterCallbackCore);
EXPORT(ProcUISetSaveCallback);
EXPORT(ProcUIShutdown);
EXPORT(ProcUISubProcessMessages);