aboutsummaryrefslogtreecommitdiff
path: root/i3bar/include/mode.h
blob: 4646b9f42a9756f6077b3ba02867a2df7247da4a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*
 * vim:ts=4:sw=4:expandtab
 *
 * i3bar - an xcb-based status- and ws-bar for i3
 * © 2010 Axel Wagner and contributors (see also: LICENSE)
 *
 * mode.c: Handle "mode" event and show current binding mode in the bar
 *
 */
#pragma once

#include <config.h>

#include <xcb/xproto.h>

#include "common.h"

/* Name of current binding mode and its render width */
struct mode {
    i3String *name;
    int name_width;
};

typedef struct mode mode;

/*
 * Parse the received JSON string
 *
 */
void parse_mode_json(const unsigned char *json, size_t size);