X-Git-Url: https://git.sur5r.net/?p=i3%2Fi3;a=blobdiff_plain;f=include%2Fconfig_parser.h;h=009538f2d40625d31ba19976aeab2e4d88a63a8f;hp=28c28e4882e7f2b6fa220cfe98ca4d4b391f1819;hb=HEAD;hpb=d9ca3e4274e117f6270d8f3b5b99a97073749b42 diff --git a/include/config_parser.h b/include/config_parser.h index 28c28e48..009538f2 100644 --- a/include/config_parser.h +++ b/include/config_parser.h @@ -9,11 +9,14 @@ */ #pragma once +#include + #include +SLIST_HEAD(variables_head, Variable); extern pid_t config_error_nagbar_pid; -/* +/** * An intermediate reprsentation of the result of a parse_config call. * Currently unused, but the JSON output will be useful in the future when we * implement a config parsing IPC command. @@ -31,6 +34,11 @@ 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 launching i3-nagbar if use_nagbar is true.