Debian Codegraph @

i3bar/include/mode.h

raw
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 name_width;
22 };
23
24 typedef struct mode mode;
25
26 /*
27 * Parse the received JSON string
28 *
29 */
30 void parse_mode_json(const unsigned char *json, size_t size);