mirror of
https://github.com/wiiu-env/WiiUPluginSystem.git
synced 2026-08-28 04:36:39 -05:00
Adds a stub WUPSConfigItem for displaying data
This commit is contained in:
23
include/wups/config/WUPSConfigItemStub.h
Normal file
23
include/wups/config/WUPSConfigItemStub.h
Normal file
@@ -0,0 +1,23 @@
|
||||
#include <wups.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
typedef struct ConfigItemStub {
|
||||
WUPSConfigItemHandle handle;
|
||||
} ConfigItemStub;
|
||||
|
||||
bool WUPSConfigItemStub_AddToCategory(WUPSConfigCategoryHandle cat, const char *configID, const char *displayName);
|
||||
|
||||
#define WUPSConfigItemStub_AddToCategoryHandled(__config__, __cat__, __configID__, __displayName__) \
|
||||
do { \
|
||||
if (!WUPSConfigItemStub_AddToCategory(__cat__, __configID__, __displayName__)) { \
|
||||
WUPSConfig_Destroy(__config__); \
|
||||
return 0; \
|
||||
} \
|
||||
} while (0)
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
Reference in New Issue
Block a user