X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=include%2Fconfig_parser.h;h=ace4041dd2ab2e4169b838330e5ef54f690ce0ce;hb=d1f8266df068c4ba15019f34c8318f342f7ecb83;hp=28c28e4882e7f2b6fa220cfe98ca4d4b391f1819;hpb=884214f14fdbd0a4a368d2a36d5e50324fa1d52a;p=i3%2Fi3 diff --git a/include/config_parser.h b/include/config_parser.h index 28c28e48..ace4041d 100644 --- a/include/config_parser.h +++ b/include/config_parser.h @@ -9,8 +9,11 @@ */ #pragma once +#include + #include +SLIST_HEAD(variables_head, Variable); extern pid_t config_error_nagbar_pid; /* @@ -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.