|
i3
|
#include <config.h>#include <yajl/yajl_gen.h>

Go to the source code of this file.
Data Structures | |
| struct | ConfigResultIR |
| An intermediate reprsentation of the result of a parse_config call. More... | |
Functions | |
| 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. More... | |
| 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 |
| struct ConfigResultIR* parse_config | ( | const char * | input, |
| struct context * | context | ||
| ) |
Definition at line 260 of file config_parser.c.
References tokenptr::array, clear_stack(), command_output, current_match, DLOG, ELOG, context::filename, context::has_errors, token::identifier, ConfigResultIR::json_gen, tokenptr::n, token::name, next_state(), push_long(), push_string(), sasprintf(), scalloc(), single_line(), smalloc(), start_of_line(), state, statelist, statelist_idx, subcommand_output, y, and ystr.
Referenced by parse_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-nagbar if use_nagbar is true.
The return value is a boolean indicating whether there were errors during parsing.
Definition at line 885 of file config_parser.c.
References check_for_duplicate_bindings(), current_config, database, detect_version(), die, DLOG, ELOG, extract_workspace_names_from_bindings(), context::filename, FREE, get_resource(), context::has_errors, context::has_warnings, i3_version, ConfigResultIR::json_gen, Variable::key, context::line_copy, LOG, migrate_config(), Variable::next_match, parse_config(), reorder_bindings(), scalloc(), SLIST_EMPTY, SLIST_FIRST, SLIST_FOREACH, SLIST_HEAD_INITIALIZER, SLIST_REMOVE_HEAD, sstrdup(), start_config_error_nagbar(), upsert_variable(), and Variable::value.
Referenced by load_configuration().

| SLIST_HEAD | ( | variables_head | , |
| Variable | |||
| ) |
| void start_config_error_nagbar | ( | const char * | configpath, |
| bool | has_errors | ||
| ) |
launch nagbar to indicate errors in the configuration file.
launch nagbar to indicate errors in the configuration file.
Definition at line 793 of file config_parser.c.
References config, config_error_nagbar_pid, errorfilename, Config::font, context::has_errors, Font::pattern, sasprintf(), and start_nagbar().
Referenced by parse_file(), and translate_keysyms().

|
extern |
Definition at line 48 of file config_parser.c.
Referenced by cmd_reload(), i3_exit(), i3_restart(), and start_config_error_nagbar().