summaryrefslogtreecommitdiffstats
path: root/swaybar/state.h
diff options
context:
space:
mode:
Diffstat (limited to 'swaybar/state.h')
-rw-r--r--swaybar/state.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/swaybar/state.h b/swaybar/state.h
index e09807d0..985002f8 100644
--- a/swaybar/state.h
+++ b/swaybar/state.h
@@ -33,9 +33,14 @@ struct workspace {
33}; 33};
34 34
35/** 35/**
36 * Initialize state. 36 * Setup state.
37 */ 37 */
38struct swaybar_state *init_state(); 38void state_setup(struct swaybar_state *state, const char *socket_path, const char *bar_id, int desired_output);
39
40/**
41 * State mainloop.
42 */
43void state_run(struct swaybar_state *state);
39 44
40/** 45/**
41 * free workspace list. 46 * free workspace list.
@@ -43,8 +48,8 @@ struct swaybar_state *init_state();
43void free_workspaces(list_t *workspaces); 48void free_workspaces(list_t *workspaces);
44 49
45/** 50/**
46 * Free state struct. 51 * Teardown state.
47 */ 52 */
48void free_state(struct swaybar_state *state); 53void state_teardown(struct swaybar_state *state);
49 54
50#endif /* _SWAYBAR_STATE_H */ 55#endif /* _SWAYBAR_STATE_H */