aboutsummaryrefslogtreecommitdiff
path: root/include/swaybar/ipc.h
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2018-03-28 23:04:20 -0400
committerFurkan Sahin <furkan-dev@proton.me>2018-03-28 23:04:20 -0400
commit2c7351be951c35c64af43b27fba6277b69c5c701 (patch)
treebc67373916c06d48700c4f69b8c2470a2f86887f /include/swaybar/ipc.h
parent396d45d62ff404d3fe607b0e8ff0350360720159 (diff)
Start port of swaybar to layer shell
This starts up the event loop and wayland display and shims out the basic top level rendering concepts. Also includes some changes to incorporate pango into the 1.x codebase properly.
Diffstat (limited to 'include/swaybar/ipc.h')
-rw-r--r--include/swaybar/ipc.h22
1 files changed, 4 insertions, 18 deletions
diff --git a/include/swaybar/ipc.h b/include/swaybar/ipc.h
index c11931d0..57a1b925 100644
--- a/include/swaybar/ipc.h
+++ b/include/swaybar/ipc.h
@@ -1,23 +1,9 @@
#ifndef _SWAYBAR_IPC_H
#define _SWAYBAR_IPC_H
+#include "swaybar/bar.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_bar_init(struct swaybar *bar, const char *bar_id);
+bool handle_ipc_event(struct swaybar *bar);
void ipc_send_workspace_command(const char *workspace_name);
-#endif /* _SWAYBAR_IPC_H */
-
+#endif