mirror of
https://github.com/swaywm/sway.git
synced 2025-11-20 06:59:46 -05:00
swaybar: move ipc stuff to ipc.{h,c}
This commit is contained in:
parent
a6349a2444
commit
fcc47cb3bd
11 changed files with 359 additions and 301 deletions
17
swaybar/ipc.h
Normal file
17
swaybar/ipc.h
Normal file
|
|
@ -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 */
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue