]> Dogcows Code - chaz/openbox/blobdiff - openbox/config.h
add helper functions for manipulating the focus_order list.
[chaz/openbox] / openbox / config.h
index 45ef015dad2576be2e3aa20436abfacdf31017d9..27b00dd7eabe20b36c048c8659f174fc1c2ac78b 100644 (file)
@@ -3,52 +3,25 @@
 
 #include <glib.h>
 
-typedef enum {
-    Config_String,
-    Config_Integer
-} ConfigValueType;
+/*! Should new windows be focused */
+extern gboolean config_focus_new;
+/*! Focus windows when the mouse enters them */
+extern gboolean config_focus_follow;
+/*! Focus the last focused window as a fallback */
+extern gboolean config_focus_last;
+/*! Focus the last focused window as a fallback when switching desktops */
+extern gboolean config_focus_last_on_desktop;
 
-typedef union {
-    char *string;
-    int integer;
-} ConfigValue;
+/* The name of the theme */
+char *config_theme;
 
-typedef struct {
-    char *name;
-    ConfigValueType type;
-    ConfigValue value;
-} ConfigEntry;
+/*! The number of desktops */
+extern int config_desktops_num;
+/*! Names for the desktops */
+extern GSList *config_desktops_names;
 
-typedef struct {
-    char *name;
-    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);
-
-/* 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);
-
-void config_parse();
-
 #endif
This page took 0.020965 seconds and 4 git commands to generate.