aboutsummaryrefslogtreecommitdiff
path: root/include/config.h
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2016-02-24 18:53:09 +0100
committerFurkan Sahin <furkan-dev@proton.me>2016-02-24 18:53:09 +0100
commite5110225a304bdcbb9f7147d6b83e3d35c318115 (patch)
tree6be69c67c3fbdc9cb320dd7d34b26564ff486a67 /include/config.h
parent48df299c0d59d632065bc6b7615d70deddd88cd6 (diff)
Free config before exiting sway.
Apart from freeing the sway_config struct, this also terminates the swaybars spawned by sway, since they are linked by PID to the bar config structs.
Diffstat (limited to 'include/config.h')
-rw-r--r--include/config.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/config.h b/include/config.h
index 8907e019..d77872ee 100644
--- a/include/config.h
+++ b/include/config.h
@@ -193,6 +193,10 @@ bool load_config(const char *file);
*/
bool read_config(FILE *file, bool is_active);
/**
+ * Free config struct
+ */
+void free_config(struct sway_config *config);
+/**
* Does variable replacement for a string based on the config's currently loaded variables.
*/
char *do_var_replacement(char *str);