diff options
Diffstat (limited to 'include/sway/config.h')
| -rw-r--r-- | include/sway/config.h | 12 | 
1 files changed, 9 insertions, 3 deletions
| diff --git a/include/sway/config.h b/include/sway/config.h index 909b6827..632aca14 100644 --- a/include/sway/config.h +++ b/include/sway/config.h @@ -7,6 +7,7 @@  #include <wlr/types/wlr_box.h>  #include <xkbcommon/xkbcommon.h>  #include "list.h" +#include "swaynag.h"  #include "tree/layout.h"  #include "tree/container.h"  #include "wlr-layer-shell-unstable-v1-protocol.h" @@ -308,6 +309,8 @@ enum focus_wrapping_mode {   * The configuration struct. The result of loading a config file.   */  struct sway_config { +	char *swaynag_command; +	struct swaynag_instance swaynag_config_errors;  	list_t *symbols;  	list_t *modes;  	list_t *bars; @@ -345,6 +348,7 @@ struct sway_config {  	bool failed;  	bool reloading;  	bool reading; +	bool validating;  	bool auto_back_and_forth;  	bool show_marks; @@ -403,17 +407,19 @@ struct sway_config {   * Loads the main config from the given path. is_active should be true when   * reloading the config.   */ -bool load_main_config(const char *path, bool is_active); +bool load_main_config(const char *path, bool is_active, bool validating);  /**   * Loads an included config. Can only be used after load_main_config.   */ -bool load_include_configs(const char *path, struct sway_config *config); +bool load_include_configs(const char *path, struct sway_config *config, +		struct swaynag_instance *swaynag);  /**   * Reads the config from the given FILE.   */ -bool read_config(FILE *file, struct sway_config *config); +bool read_config(FILE *file, struct sway_config *config, +		struct swaynag_instance *swaynag);  /**   * Free config struct | 
