i3
Data Structures | Functions | Variables
config_parser.h File Reference
#include <yajl/yajl_gen.h>
Include dependency graph for config_parser.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  ConfigResultIR
 

Functions

struct ConfigResultIRparse_config (const char *input, struct context *context)
 
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-nagbar if use_nagbar is true. More...
 

Variables

pid_t config_error_nagbar_pid
 

Function Documentation

struct ConfigResultIR* parse_config ( const char *  input,
struct context context 
)
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-nagbar if use_nagbar is true.

The return value is a boolean indicating whether there were errors during parsing.

Definition at line 838 of file config_parser.c.

References check_for_duplicate_bindings(), config, config_error_nagbar_pid, detect_version(), die, DLOG, ELOG, errorfilename, context::filename, Config::font, FREE, context::has_errors, context::has_warnings, ConfigResultIR::json_gen, Variable::key, context::line_copy, LOG, migrate_config(), Variable::next_match, parse_config(), Font::pattern, sasprintf(), scalloc(), SLIST_EMPTY, SLIST_FIRST, SLIST_FOREACH, SLIST_HEAD, SLIST_HEAD_INITIALIZER, SLIST_INSERT_HEAD, SLIST_REMOVE_HEAD, smalloc(), sstrdup(), start_nagbar(), and Variable::value.

Referenced by parse_configuration().

Here is the call graph for this function:

Variable Documentation

pid_t config_error_nagbar_pid

Definition at line 46 of file config_parser.c.

Referenced by cmd_reload(), i3_restart(), and parse_file().