typedef enum {
Config_String,
- Config_Integer
+ Config_Integer,
+ Config_Bool
} ConfigValueType;
typedef union {
char *string;
int integer;
+ gboolean bool;
} ConfigValue;
typedef struct {
typedef struct {
char *name;
+ char *descriptive_name; /* user friendly name */
+ char *long_description; /* text description of option */
ConfigValueType type;
/* if it is a string type optionally provide a list of valid strings */
gboolean hasList;
gboolean config_get(char *name, ConfigValueType type, ConfigValue *value);
/* Create a new config definition to add to the config system */
-ConfigDefEntry *config_def_new(char *name, ConfigValueType type);
+ConfigDefEntry *config_def_new(char *name, ConfigValueType type,
+ char *descriptive_name, char *long_description);
/* Add a value to a String type config definition */
gboolean config_def_add_value(ConfigDefEntry *entry, char *value);