aboutsummaryrefslogtreecommitdiffstats
path: root/include/bar/ipc.h
blob: c3f661f86fa1b7ef1014ce1d827ea217f7d860be (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#ifndef _SWAYBAR_IPC_H
#define _SWAYBAR_IPC_H

#include "bar.h"

/**
 * Initialize ipc connection to sway and get sway state, outputs, bar_config.
 */
void ipc_bar_init(struct bar *bar, int outputi, const char *bar_id);

/**
 * Handle ipc event from sway.
 */
bool handle_ipc_event(struct bar *bar);

#endif /* _SWAYBAR_IPC_H */