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