diff options
Diffstat (limited to 'swaybar/state.h')
-rw-r--r-- | swaybar/state.h | 10 |
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 @@ | |||
3 | 3 | ||
4 | #include "client/registry.h" | 4 | #include "client/registry.h" |
5 | #include "client/window.h" | 5 | #include "client/window.h" |
6 | #include "list.h" | ||
6 | 7 | ||
7 | struct swaybar_state { | 8 | struct swaybar_state { |
8 | struct swaybar_config *config; | 9 | struct swaybar_config *config; |
@@ -37,8 +38,13 @@ struct workspace { | |||
37 | struct swaybar_state *init_state(); | 38 | struct swaybar_state *init_state(); |
38 | 39 | ||
39 | /** | 40 | /** |
40 | * free workspace struct. | 41 | * free workspace list. |
41 | */ | 42 | */ |
42 | void free_workspace(void *item); | 43 | void free_workspaces(list_t *workspaces); |
44 | |||
45 | /** | ||
46 | * Free state struct. | ||
47 | */ | ||
48 | void free_state(struct swaybar_state *state); | ||
43 | 49 | ||
44 | #endif /* _SWAYBAR_STATE_H */ | 50 | #endif /* _SWAYBAR_STATE_H */ |