aboutsummaryrefslogtreecommitdiff
path: root/swaybar/ipc.h
diff options
context:
space:
mode:
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..06d30076
--- /dev/null
+++ b/swaybar/ipc.h
@@ -0,0 +1,17 @@
+#ifndef _SWAYBAR_IPC_H
+#define _SWAYBAR_IPC_H
+
+#include "state.h"
+
+/**
+ * Initialize ipc connection to sway and get sway state, outputs, bar_config.
+ */
+void ipc_bar_init(struct swaybar_state *state, int outputi, const char *bar_id);
+
+/**
+ * Handle ipc event from sway.
+ */
+bool handle_ipc_event(struct swaybar_state *state);
+
+#endif /* _SWAYBAR_IPC_H */
+