mirror of
https://github.com/wiiu-env/WiiUPluginSystem.git
synced 2024-11-15 23:35:15 +01:00
25 lines
822 B
C
25 lines
822 B
C
#include <wups.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
typedef struct ConfigItemBoolean {
|
|
char *configId;
|
|
WUPSConfigItemHandle handle;
|
|
bool defaultValue;
|
|
bool value;
|
|
char trueValue[32];
|
|
char falseValue[32];
|
|
void *callback;
|
|
} ConfigItemBoolean;
|
|
|
|
typedef void (*BooleanValueChangedCallback)(ConfigItemBoolean *, bool);
|
|
|
|
bool WUPSConfigItemBoolean_AddToCategory(WUPSConfigCategoryHandle cat, const char *configId, const char *displayName, bool defaultValue, BooleanValueChangedCallback callback);
|
|
bool WUPSConfigItemBoolean_AddToCategoryEx(WUPSConfigCategoryHandle cat, const char *configId, const char *displayName, bool defaultValue, BooleanValueChangedCallback callback, const char *trueValue,
|
|
const char *falseValue);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif |