2021-09-24 19:57:15 +02:00
|
|
|
#include <wups.h>
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
typedef struct ConfigItemBoolean {
|
2022-09-24 17:41:20 +02:00
|
|
|
char *configId;
|
2021-09-24 19:57:15 +02:00
|
|
|
WUPSConfigItemHandle handle;
|
|
|
|
bool defaultValue;
|
|
|
|
bool value;
|
|
|
|
char trueValue[32];
|
|
|
|
char falseValue[32];
|
|
|
|
void *callback;
|
|
|
|
} ConfigItemBoolean;
|
|
|
|
|
|
|
|
typedef void (*BooleanValueChangedCallback)(ConfigItemBoolean *, bool);
|
|
|
|
|
2022-09-24 17:41:20 +02:00
|
|
|
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,
|
2021-09-24 19:57:15 +02:00
|
|
|
const char *falseValue);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|