aboutsummaryrefslogtreecommitdiff
path: root/include/bar/ipc.h
diff options
context:
space:
mode:
authorMikkel Oscar Lyderik <mikkeloscar@gmail.com>2016-01-24 15:55:58 +0100
committerMikkel Oscar Lyderik <mikkeloscar@gmail.com>2016-01-24 15:55:58 +0100
commited227f5664196d85194d63d01a5382499867a386 (patch)
tree0474bff44ae5880fd3336a0a9dd04641793f153e /include/bar/ipc.h
parent4b48a8399a33f3bb5f5d55f87213bb4692a5f1f9 (diff)
swaybar: move headers to include/bar
Diffstat (limited to 'include/bar/ipc.h')
-rw-r--r--include/bar/ipc.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/include/bar/ipc.h b/include/bar/ipc.h
new file mode 100644
index 00000000..c3f661f8
--- /dev/null
+++ b/include/bar/ipc.h
@@ -0,0 +1,17 @@
+#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, int outputi, const char *bar_id);
+
+/**
+ * Handle ipc event from sway.
+ */
+bool handle_ipc_event(struct bar *bar);
+
+#endif /* _SWAYBAR_IPC_H */
+