aboutsummaryrefslogtreecommitdiff
path: root/swaybar/state.h
diff options
context:
space:
mode:
Diffstat (limited to 'swaybar/state.h')
-rw-r--r--swaybar/state.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/swaybar/state.h b/swaybar/state.h
index f95e03bc..e09807d0 100644
--- a/swaybar/state.h
+++ b/swaybar/state.h
@@ -3,6 +3,7 @@
#include "client/registry.h"
#include "client/window.h"
+#include "list.h"
struct swaybar_state {
struct swaybar_config *config;
@@ -37,8 +38,13 @@ struct workspace {
struct swaybar_state *init_state();
/**
- * free workspace struct.
+ * free workspace list.
*/
-void free_workspace(void *item);
+void free_workspaces(list_t *workspaces);
+
+/**
+ * Free state struct.
+ */
+void free_state(struct swaybar_state *state);
#endif /* _SWAYBAR_STATE_H */