swaybar: rename state to bar

This commit is contained in:
Mikkel Oscar Lyderik 2016-01-24 02:34:20 +01:00
parent c6fc0033e1
commit aa6ad09183
13 changed files with 274 additions and 273 deletions

View file

@ -1,17 +1,17 @@
#ifndef _SWAYBAR_IPC_H
#define _SWAYBAR_IPC_H
#include "state.h"
#include "bar.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);
void ipc_bar_init(struct bar *bar, int outputi, const char *bar_id);
/**
* Handle ipc event from sway.
*/
bool handle_ipc_event(struct swaybar_state *state);
bool handle_ipc_event(struct bar *bar);
#endif /* _SWAYBAR_IPC_H */