swayfx/include/bar/ipc.h

18 lines
317 B
C
Raw Normal View History

2016-01-24 10:23:09 +11:00
#ifndef _SWAYBAR_IPC_H
#define _SWAYBAR_IPC_H
2016-01-24 12:34:20 +11:00
#include "bar.h"
2016-01-24 10:23:09 +11:00
/**
* Initialize ipc connection to sway and get sway state, outputs, bar_config.
*/
void ipc_bar_init(struct bar *bar, const char *bar_id);
2016-01-24 10:23:09 +11:00
/**
* Handle ipc event from sway.
*/
2016-01-24 12:34:20 +11:00
bool handle_ipc_event(struct bar *bar);
2016-01-24 10:23:09 +11:00
#endif /* _SWAYBAR_IPC_H */