Add basic ProcUI RPL imports

This commit is contained in:
shinyquagsire23 2016-07-27 00:39:03 -07:00
parent 0dc5e4fbec
commit 8faf7c7f38
5 changed files with 86 additions and 1 deletions

68
include/proc_ui/procui.h Normal file
View File

@ -0,0 +1,68 @@
#pragma once
#include <wut.h>
/**
* \defgroup proc_ui_procui ProcUI
* \ingroup proc_ui
* @{
*/
#ifdef __cplusplus
"C" {
#endif
typedef void (*ProcUISaveCallback)(void);
typedef uint32_t (*ProcUISaveCallbackEx)(void*);
typedef uint32_t (*ProcUICallback)(void*);
typedef enum ProcUIStatus
{
PROCUI_STATUS_IN_FOREGROUND,
PROCUI_STATUS_IN_BACKGROUND,
PROCUI_STATUS_RELEASE_FOREGROUND,
PROCUI_STATUS_EXITING,
} ProcUIStatus;
uint32_t
ProcUICalcMemorySize(uint32_t unk);
void
ProcUIClearCallbacks();
void
ProcUIDrawDoneRelease();
BOOL
ProcUIInForeground();
BOOL
ProcUIInShutdown();
void
ProcUIInit(ProcUISaveCallback saveCallback);
void
ProcUIInitEx(ProcUISaveCallbackEx saveCallback,
void *arg);
BOOL
ProcUIIsRunning();
ProcUIStatus
ProcUIProcessMessages(BOOL block);
void
ProcUISetSaveCallback(ProcUISaveCallbackEx saveCallback,
void *arg);
void
ProcUIShutdown();
ProcUIStatus
ProcUISubProcessMessages();
#ifdef __cplusplus
}
#endif
/** @} */

View File

@ -1,5 +1,5 @@
WUT_ROOT := $(CURDIR)/..
TARGETS := libcoreinit libgx2 libnsysnet libvpad libsysapp
TARGETS := libcoreinit libgx2 libnsysnet libvpad libsysapp libproc_ui
all:
@for dir in $(TARGETS); do \

2
rpl/libproc_ui/Makefile Normal file
View File

@ -0,0 +1,2 @@
-include ../common/rules.mk
-include ../../common/rules.mk

1
rpl/libproc_ui/config.h Normal file
View File

@ -0,0 +1 @@
#define LIBRARY_NAME "proc_ui"

14
rpl/libproc_ui/exports.h Normal file
View File

@ -0,0 +1,14 @@
// procui/procui.h
EXPORT(ProcUICalcMemorySize);
EXPORT(ProcUIClearCallbacks);
EXPORT(ProcUIDrawDoneRelease);
EXPORT(ProcUIInForeground);
EXPORT(ProcUIInShutdown);
EXPORT(ProcUIInit);
EXPORT(ProcUIInitEx);
EXPORT(ProcUIIsRunning);
EXPORT(ProcUIProcessMessages);
EXPORT(ProcUISetSaveCallback);
EXPORT(ProcUIShutdown);
EXPORT(ProcUISubProcessMessages);