summaryrefslogtreecommitdiff
path: root/openbox/config.h
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-04-05 20:27:03 +0000
committerDana Jansens <danakj@orodu.net>2003-04-05 20:27:03 +0000
commitcbbf90a718ecc6836ef7a77b9040aebb9da348b8 (patch)
treea53bcdc993f850bc0500daaebd5b1bd0b7b50ee1 /openbox/config.h
parent88f8ebada97c4c82252badeb57b7e71a2940600b (diff)
change how rc parsing will work. a=b will be parsed in any [section] and given to a separate parsing callback. no more general config infrastructure needed/
Diffstat (limited to 'openbox/config.h')
-rw-r--r--openbox/config.h57
1 files changed, 0 insertions, 57 deletions
diff --git a/openbox/config.h b/openbox/config.h
deleted file mode 100644
index 3d82090b..00000000
--- a/openbox/config.h
+++ /dev/null
@@ -1,57 +0,0 @@
-#ifndef __config_h
-#define __config_h
-
-#include <glib.h>
-
-typedef enum {
- Config_String,
- Config_Integer,
- Config_Bool
-} ConfigValueType;
-
-typedef union {
- char *string;
- int integer;
- gboolean bool;
-} ConfigValue;
-
-typedef struct {
- char *name;
- ConfigValueType type;
- ConfigValue value;
-} ConfigEntry;
-
-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;
- GSList *values;
-} ConfigDefEntry;
-
-void config_startup();
-void config_shutdown();
-
-/* Set a config variable's value. The variable must have already been defined
- with a call to config_def_set */
-gboolean config_set(char *name, ConfigValueType type, ConfigValue value);
-
-/* Get a config variable's value. Returns FALSE if the value has not been
- set. */
-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,
- char *descriptive_name, char *long_description);
-
-/* Add a value to a String type config definition */
-gboolean config_def_add_value(ConfigDefEntry *entry, char *value);
-
-/* Sets up the definition in the config system, Don't free or touch the entry
- after setting it with this. It is invalidated even if the function returns
- FALSE. */
-gboolean config_def_set(ConfigDefEntry *entry);
-
-#endif