From 416417a54c5875abcdc257b6ad10ff086c35eefc Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Thu, 1 Sep 2016 08:18:37 -0400 Subject: Reorganize includes --- include/swaybar/ipc.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 include/swaybar/ipc.h (limited to 'include/swaybar/ipc.h') 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 */ + -- cgit v1.2.3-54-g00ecf