diff options
author | Mikkel Oscar Lyderik <mikkeloscar@gmail.com> | 2016-01-24 00:23:09 +0100 |
---|---|---|
committer | Mikkel Oscar Lyderik <mikkeloscar@gmail.com> | 2016-01-24 14:22:19 +0100 |
commit | fcc47cb3bddd20a2fd068a4e486415112e4d4d20 (patch) | |
tree | e75ee1a9a744f6954ae8b2a53c69b8de0c0391a4 /swaybar/ipc.h | |
parent | swaybar: feactor render, statusline (diff) | |
download | sway-fcc47cb3bddd20a2fd068a4e486415112e4d4d20.tar.gz sway-fcc47cb3bddd20a2fd068a4e486415112e4d4d20.tar.zst sway-fcc47cb3bddd20a2fd068a4e486415112e4d4d20.zip |
swaybar: move ipc stuff to ipc.{h,c}
Diffstat (limited to 'swaybar/ipc.h')
-rw-r--r-- | swaybar/ipc.h | 17 |
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 @@ | |||
1 | #ifndef _SWAYBAR_IPC_H | ||
2 | #define _SWAYBAR_IPC_H | ||
3 | |||
4 | #include "state.h" | ||
5 | |||
6 | /** | ||
7 | * Initialize ipc connection to sway and get sway state, outputs, bar_config. | ||
8 | */ | ||
9 | void ipc_bar_init(struct swaybar_state *state, int outputi, const char *bar_id); | ||
10 | |||
11 | /** | ||
12 | * Handle ipc event from sway. | ||
13 | */ | ||
14 | bool handle_ipc_event(struct swaybar_state *state); | ||
15 | |||
16 | #endif /* _SWAYBAR_IPC_H */ | ||
17 | |||