i3
Main Page
Data Structures
Files
File List
Globals
include
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
#pragma once
11
12
#include <yajl/yajl_gen.h>
13
14
extern
pid_t
config_error_nagbar_pid
;
15
16
/*
17
* An intermediate reprsentation of the result of a parse_config call.
18
* Currently unused, but the JSON output will be useful in the future when we
19
* implement a config parsing IPC command.
20
*
21
*/
22
struct
ConfigResultIR
{
23
/* The JSON generator to append a reply to. */
24
yajl_gen
json_gen
;
25
26
/* The next state to transition to. Passed to the function so that we can
27
* determine the next state as a result of a function call, like
28
* cfg_criteria_pop_state() does. */
29
int
next_state
;
30
};
31
32
struct
ConfigResultIR
*
parse_config
(
const
char
*input,
struct
context
*
context
);
33
39
void
parse_file
(
const
char
*f);
ConfigResultIR::next_state
int next_state
Definition:
config_parser.h:29
parse_file
void parse_file(const char *f)
Parses the given file by first replacing the variables, then calling parse_config and possibly launch...
Definition:
config_parser.c:843
context
Used during the config file lexing/parsing to keep the state of the lexer in order to provide useful ...
Definition:
config.h:32
ConfigResultIR::json_gen
yajl_gen json_gen
Definition:
config_parser.h:24
parse_config
struct ConfigResultIR * parse_config(const char *input, struct context *context)
Definition:
config_parser.c:305
config_error_nagbar_pid
pid_t config_error_nagbar_pid
Definition:
config_parser.c:46
ConfigResultIR
Definition:
config_parser.h:22
Generated by
1.8.6