diff options
author | 2018-02-04 10:37:46 -0700 | |
---|---|---|
committer | 2018-02-04 12:31:07 -0700 | |
commit | a83bca6db5348033b21ebb4ed7bc189d39e2b0c4 (patch) | |
tree | ab10cd02219ad353a97794139e92e8801ce5871f /include/swaybar/event_loop.h | |
parent | Merge pull request #1579 from tmccombs/patch-1 (diff) | |
download | sway-a83bca6db5348033b21ebb4ed7bc189d39e2b0c4.tar.gz sway-a83bca6db5348033b21ebb4ed7bc189d39e2b0c4.tar.zst sway-a83bca6db5348033b21ebb4ed7bc189d39e2b0c4.zip |
Handle swaybar status line errors
The event loop API was redesigned to avoid race conditions as well.
Fixes #1583
Diffstat (limited to 'include/swaybar/event_loop.h')
-rw-r--r-- | include/swaybar/event_loop.h | 8 |
1 files changed, 4 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(); |