]> git.sur5r.net Git - i3/i3/blobdiff - i3bar/include/config.h
Make i3bar get its config from i3 via IPC
[i3/i3] / i3bar / include / config.h
index b3473917dc0fc625f03de43785a38d9b6b69661c..19b246dcface3ebd96ffa77926ca52b32c22ba02 100644 (file)
@@ -13,10 +13,25 @@ typedef struct config_t {
     int          hide_on_modifier;
     dockpos_t    dockpos;
     int          verbose;
-    xcb_colors_t *colors;
+    struct xcb_color_strings_t colors;
     int          disable_ws;
+    char         *bar_id;
+    char         *command;
+    char         *fontname;
 } config_t;
 
 config_t config;
 
+/**
+ * Start parsing the received bar configuration json-string
+ *
+ */
+void parse_config_json(char *json);
+
+/**
+ * free()s the color strings as soon as they are not needed anymore.
+ *
+ */
+void free_colors(struct xcb_color_strings_t *colors);
+
 #endif