summaryrefslogtreecommitdiff
path: root/include/swaybar/ipc.h
diff options
context:
space:
mode:
authorZandr Martin <[email protected]>2016-09-02 13:46:19 -0500
committerZandr Martin <[email protected]>2016-09-02 13:46:19 -0500
commit79ffea328c992c5109406771a59a9f016d85970d (patch)
tree5d965e72127f227ea0a38dc5c6e4fc14e08d9498 /include/swaybar/ipc.h
parentb374c35758777f98e5ddbe4b0dc43bd7c80f36d7 (diff)
parent4e6d7b125895955e3a84583c6d61f3eb2f8a4fe9 (diff)
Merge branch 'master' of git://github.com/SirCmpwn/sway into commands-refactor
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 @@
+#ifndef _SWAYBAR_IPC_H
+#define _SWAYBAR_IPC_H
+
+#include "bar.h"
+
+/**
+ * Initialize ipc connection to sway and get sway state, outputs, bar_config.
+ */
+void ipc_bar_init(struct bar *bar, const char *bar_id);
+
+/**
+ * Handle ipc event from sway.
+ */
+bool handle_ipc_event(struct bar *bar);
+
+
+/**
+ * Send workspace command to sway
+ */
+void ipc_send_workspace_command(const char *workspace_name);
+
+#endif /* _SWAYBAR_IPC_H */
+