diff options
Diffstat (limited to 'include/swaybar/ipc.h')
-rw-r--r-- | include/swaybar/ipc.h | 22 |
1 files changed, 4 insertions, 18 deletions
diff --git a/include/swaybar/ipc.h b/include/swaybar/ipc.h index c11931d0..57a1b925 100644 --- a/include/swaybar/ipc.h +++ b/include/swaybar/ipc.h | |||
@@ -1,23 +1,9 @@ | |||
1 | #ifndef _SWAYBAR_IPC_H | 1 | #ifndef _SWAYBAR_IPC_H |
2 | #define _SWAYBAR_IPC_H | 2 | #define _SWAYBAR_IPC_H |
3 | #include "swaybar/bar.h" | ||
3 | 4 | ||
4 | #include "bar.h" | 5 | void ipc_bar_init(struct swaybar *bar, const char *bar_id); |
5 | 6 | bool handle_ipc_event(struct swaybar *bar); | |
6 | /** | ||
7 | * Initialize ipc connection to sway and get sway state, outputs, bar_config. | ||
8 | */ | ||
9 | void ipc_bar_init(struct bar *bar, const char *bar_id); | ||
10 | |||
11 | /** | ||
12 | * Handle ipc event from sway. | ||
13 | */ | ||
14 | bool handle_ipc_event(struct bar *bar); | ||
15 | |||
16 | |||
17 | /** | ||
18 | * Send workspace command to sway | ||
19 | */ | ||
20 | void ipc_send_workspace_command(const char *workspace_name); | 7 | void ipc_send_workspace_command(const char *workspace_name); |
21 | 8 | ||
22 | #endif /* _SWAYBAR_IPC_H */ | 9 | #endif |
23 | |||