From fcc47cb3bddd20a2fd068a4e486415112e4d4d20 Mon Sep 17 00:00:00 2001 From: Mikkel Oscar Lyderik Date: Sun, 24 Jan 2016 00:23:09 +0100 Subject: swaybar: move ipc stuff to ipc.{h,c} --- swaybar/ipc.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 swaybar/ipc.h (limited to 'swaybar/ipc.h') 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 */ + -- cgit v1.2.3