X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fconfig.h;h=9b62b8e5e009527fb483653290ef34f5d19d45b0;hb=a6815038d61b64d5f13d28b6e5f67fe1630213e9;hp=45ef015dad2576be2e3aa20436abfacdf31017d9;hpb=94f2b4a7b8b62ed031fe96da4d24b2d5dbb4aded;p=chaz%2Fopenbox diff --git a/openbox/config.h b/openbox/config.h index 45ef015d..9b62b8e5 100644 --- a/openbox/config.h +++ b/openbox/config.h @@ -5,12 +5,14 @@ typedef enum { Config_String, - Config_Integer + Config_Integer, + Config_Bool } ConfigValueType; typedef union { char *string; int integer; + gboolean bool; } ConfigValue; typedef struct { @@ -21,6 +23,8 @@ 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; @@ -39,7 +43,8 @@ gboolean config_set(char *name, ConfigValueType type, ConfigValue value); 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);