aboutsummaryrefslogtreecommitdiffstats
path: root/include/swaybar/event_loop.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/swaybar/event_loop.h')
-rw-r--r--include/swaybar/event_loop.h26
1 files changed, 0 insertions, 26 deletions
diff --git a/include/swaybar/event_loop.h b/include/swaybar/event_loop.h
deleted file mode 100644
index 47be5b79..00000000
--- a/include/swaybar/event_loop.h
+++ /dev/null
@@ -1,26 +0,0 @@
1#ifndef _SWAYBAR_EVENT_LOOP_H
2#define _SWAYBAR_EVENT_LOOP_H
3#include <stdbool.h>
4#include <time.h>
5
6void add_event(int fd, short mask,
7 void(*cb)(int fd, short mask, void *data),
8 void *data);
9
10// Not guaranteed to notify cb immediately
11void add_timer(timer_t timer,
12 void(*cb)(timer_t timer, void *data),
13 void *data);
14
15// Returns false if nothing exists, true otherwise
16bool remove_event(int fd);
17
18// Returns false if nothing exists, true otherwise
19bool remove_timer(timer_t timer);
20
21// Blocks and returns after sending callbacks
22void event_loop_poll(void);
23
24void init_event_loop(void);
25
26#endif