diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/swaybar/event_loop.h | 8 | ||||
-rw-r--r-- | include/swaybar/status_line.h | 6 |
2 files changed, 10 insertions, 4 deletions
diff --git a/include/swaybar/event_loop.h b/include/swaybar/event_loop.h index a0cde07f..d5089262 100644 --- a/include/swaybar/event_loop.h +++ b/include/swaybar/event_loop.h | |||
@@ -13,11 +13,11 @@ void add_timer(timer_t timer, | |||
13 | void(*cb)(timer_t timer, void *data), | 13 | void(*cb)(timer_t timer, void *data), |
14 | void *data); | 14 | void *data); |
15 | 15 | ||
16 | // Returns false if nothing exists, true otherwise | 16 | // Remove the given event from the event loop |
17 | bool remove_event(int fd); | 17 | void remove_event(int fd); |
18 | 18 | ||
19 | // Returns false if nothing exists, true otherwise | 19 | // Remove the given timer from the event loop |
20 | bool remove_timer(timer_t timer); | 20 | void remove_timer(timer_t timer); |
21 | 21 | ||
22 | // Blocks and returns after sending callbacks | 22 | // Blocks and returns after sending callbacks |
23 | void event_loop_poll(); | 23 | void event_loop_poll(); |
diff --git a/include/swaybar/status_line.h b/include/swaybar/status_line.h index 0664ddee..3ec0fcd0 100644 --- a/include/swaybar/status_line.h +++ b/include/swaybar/status_line.h | |||
@@ -49,6 +49,12 @@ struct status_line *init_status_line(); | |||
49 | bool handle_status_line(struct bar *bar); | 49 | bool handle_status_line(struct bar *bar); |
50 | 50 | ||
51 | /** | 51 | /** |
52 | * This should be called if statusline input cannot be accessed. | ||
53 | * It will set an error statusline instead of using the status command | ||
54 | */ | ||
55 | void handle_status_hup(struct status_line *status); | ||
56 | |||
57 | /** | ||
52 | * Handle mouse clicks. | 58 | * Handle mouse clicks. |
53 | */ | 59 | */ |
54 | bool status_line_mouse_event(struct bar *bar, int x, int y, uint32_t button); | 60 | bool status_line_mouse_event(struct bar *bar, int x, int y, uint32_t button); |