]> Dogcows Code - chaz/openbox/blobdiff - openbox/config.h
make tint signed
[chaz/openbox] / openbox / config.h
index 45ef015dad2576be2e3aa20436abfacdf31017d9..3d82090ba391f39e3198ee6afd463960e0ae4867 100644 (file)
@@ -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);
@@ -49,6 +54,4 @@ gboolean config_def_add_value(ConfigDefEntry *entry, char *value);
    FALSE. */
 gboolean config_def_set(ConfigDefEntry *entry);
 
-void config_parse();
-
 #endif
This page took 0.022225 seconds and 4 git commands to generate.