X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=include%2Fconfig_parser.h;h=2ba79a68b8fa0f338a70b7f0919061f77fe839e1;hb=47562b414389711a82db25a694b064ad39117f82;hp=e18e5cf2a892180436c870b0261ab7035ec8026f;hpb=34f6f185bfe9476801e6ef45114197becefb0b21;p=i3%2Fi3 diff --git a/include/config_parser.h b/include/config_parser.h index e18e5cf2..2ba79a68 100644 --- a/include/config_parser.h +++ b/include/config_parser.h @@ -2,7 +2,7 @@ * vim:ts=4:sw=4:expandtab * * i3 - an improved dynamic tiling window manager - * © 2009-2012 Michael Stapelberg and contributors (see also: LICENSE) + * © 2009 Michael Stapelberg and contributors (see also: LICENSE) * * config_parser.h: config parser-related definitions * @@ -11,6 +11,7 @@ #include +SLIST_HEAD(variables_head, Variable); extern pid_t config_error_nagbar_pid; /* @@ -31,9 +32,17 @@ struct ConfigResultIR { struct ConfigResultIR *parse_config(const char *input, struct context *context); +/** + * launch nagbar to indicate errors in the configuration file. + */ +void start_config_error_nagbar(const char *configpath, bool has_errors); + /** * Parses the given file by first replacing the variables, then calling - * parse_config and possibly launching i3-nagbar. + * parse_config and launching i3-nagbar if use_nagbar is true. + * + * The return value is a boolean indicating whether there were errors during + * parsing. * */ -void parse_file(const char *f); +bool parse_file(const char *f, bool use_nagbar);