]> git.sur5r.net Git - i3/i3/blob - i3bar/include/mode.h
37e8e01793d75fea581bd564f58a6155770ddaf0
[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-2012 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 <xcb/xproto.h>
13
14 #include "common.h"
15
16 /* Name of current binding mode and its render width */
17 struct mode {
18     i3String *name;
19     int width;
20 };
21
22 typedef struct mode mode;
23
24 /*
25  * Start parsing the received JSON string
26  *
27  */
28 void parse_mode_json(char *json);