i3
config_parser.h
Go to the documentation of this file.
1 /*
2  * vim:ts=4:sw=4:expandtab
3  *
4  * i3 - an improved dynamic tiling window manager
5  * © 2009-2012 Michael Stapelberg and contributors (see also: LICENSE)
6  *
7  * config_parser.h: config parser-related definitions
8  *
9  */
10 #ifndef I3_CONFIG_PARSER_H
11 #define I3_CONFIG_PARSER_H
12 
13 #include <yajl/yajl_gen.h>
14 
15 /*
16  * The result of a parse_config call. Currently unused, but the JSON output
17  * will be useful in the future when we implement a config parsing IPC command.
18  *
19  */
20 struct ConfigResult {
21  /* The JSON generator to append a reply to. */
22  yajl_gen json_gen;
23 
24  /* The next state to transition to. Passed to the function so that we can
25  * determine the next state as a result of a function call, like
26  * cfg_criteria_pop_state() does. */
28 };
29 
30 struct ConfigResult *parse_config(const char *input, struct context *context);
31 
32 #endif