aboutsummaryrefslogtreecommitdiff
path: root/swaybar/ipc.h
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2016-01-24 09:46:28 -0500
committerDrew DeVault <sir@cmpwn.com>2016-01-24 09:46:28 -0500
commit4b48a8399a33f3bb5f5d55f87213bb4692a5f1f9 (patch)
tree1d820cd07f6ba693a89d43caf01b3c8b01390609 /swaybar/ipc.h
parentc8cf3f70f979a6eb373ec1ebdf8f80bc42dcd633 (diff)
parenta61a27c485d1b20fc7c5cbfc42b5d90148d82355 (diff)
Merge pull request #467 from mikkeloscar/swaybar-refactor
[WIP] Swaybar refactor
Diffstat (limited to 'swaybar/ipc.h')
-rw-r--r--swaybar/ipc.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/swaybar/ipc.h b/swaybar/ipc.h
new file mode 100644
index 00000000..c3f661f8
--- /dev/null
+++ b/swaybar/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 */
+