]> git.sur5r.net Git - i3/i3/blob - i3bar/include/mode.h
5c87d904874f6728112d0cf9af4b043292bc9a09
[i3/i3] / i3bar / include / mode.h
1 /*
2  * vim:ts=4:sw=4:expandtab
3  *
4  * i3bar - an xcb-based status- and ws-bar for i3
5  * © 2010 Axel Wagner and contributors (see also: LICENSE)
6  *
7  * mode.c: Handle "mode" event and show current binding mode in the bar
8  *
9  */
10 #pragma once
11
12 #include <config.h>
13
14 #include <xcb/xproto.h>
15
16 #include "common.h"
17
18 /* Name of current binding mode and its render width */
19 struct mode {
20     i3String *name;
21     int width;
22 };
23
24 typedef struct mode mode;
25
26 /*
27  * Start parsing the received JSON string
28  *
29  */
30 void parse_mode_json(char *json);