]> git.sur5r.net Git - i3/i3/blob - i3bar/include/config.h
Merge branch 'master' into next
[i3/i3] / i3bar / include / config.h
1 /*
2  * vim:ts=4:sw=4:expandtab
3  *
4  * i3bar - an xcb-based status- and ws-bar for i3
5  * © 2010-2011 Axel Wagner and contributors (see also: LICENSE)
6  *
7  * config.c: Parses the configuration (received from i3).
8  *
9  */
10 #ifndef CONFIG_H_
11 #define CONFIG_H_
12
13 #include "common.h"
14
15 typedef enum {
16     POS_NONE = 0,
17     POS_TOP,
18     POS_BOT
19 } position_t;
20
21 typedef struct config_t {
22     int          hide_on_modifier;
23     int          modifier;
24     position_t   position;
25     int          verbose;
26     struct xcb_color_strings_t colors;
27     int          disable_ws;
28     char         *bar_id;
29     char         *command;
30     char         *fontname;
31     char         *tray_output;
32     int          num_outputs;
33     char         **outputs;
34 } config_t;
35
36 config_t config;
37
38 /**
39  * Start parsing the received bar configuration json-string
40  *
41  */
42 void parse_config_json(char *json);
43
44 /**
45  * free()s the color strings as soon as they are not needed anymore.
46  *
47  */
48 void free_colors(struct xcb_color_strings_t *colors);
49
50 #endif