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 Michael Stapelberg and contributors (see also: LICENSE)
6  *
7  * config_parser.h: config parser-related definitions
8  *
9  */
10 #pragma once
11 
12 #include <config.h>
13 
14 #include <yajl/yajl_gen.h>
15 
16 SLIST_HEAD(variables_head, Variable);
17 extern pid_t config_error_nagbar_pid;
18 
26  /* The JSON generator to append a reply to. */
27  yajl_gen json_gen;
28 
29  /* The next state to transition to. Passed to the function so that we can
30  * determine the next state as a result of a function call, like
31  * cfg_criteria_pop_state() does. */
33 };
34 
35 struct ConfigResultIR *parse_config(const char *input, struct context *context);
36 
40 void start_config_error_nagbar(const char *configpath, bool has_errors);
41 
50 bool parse_file(const char *f, bool use_nagbar);
pid_t config_error_nagbar_pid
Definition: config_parser.c:48
SLIST_HEAD(variables_head, Variable)
struct ConfigResultIR * parse_config(const char *input, struct context *context)
void start_config_error_nagbar(const char *configpath, bool has_errors)
launch nagbar to indicate errors in the configuration file.
bool parse_file(const char *f, bool use_nagbar)
Parses the given file by first replacing the variables, then calling parse_config and launching i3-na...
An intermediate reprsentation of the result of a parse_config call.
Definition: config_parser.h:25
yajl_gen json_gen
Definition: config_parser.h:27
Used during the config file lexing/parsing to keep the state of the lexer in order to provide useful ...
Definition: configuration.h:31
Holds a user-assigned variable for parsing the configuration file.
Definition: configuration.h:64