mirror of
https://github.com/troglobit/libuev.git
synced 2026-10-30 12:10:30 +00:00
Add support for generic events using Linux eventfd
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
fd89af6ca1
commit
90048e5996
9 files changed
+206
-1
No files matched your search
@@ -50,6 +50,7 @@
|
||||
#define uev_signal_active(w) _uev_watcher_active(w)
|
||||
#define uev_timer_active(w) _uev_watcher_active(w)
|
||||
#define uev_cron_active(w) _uev_watcher_active(w)
|
||||
#define uev_event_active(w) _uev_watcher_active(w)
|
||||
|
||||
/* Event watcher */
|
||||
typedef struct uev {
|
||||
@@ -100,6 +101,10 @@ int uev_signal_set (uev_t *w, int signo);
|
||||
int uev_signal_start (uev_t *w);
|
||||
int uev_signal_stop (uev_t *w);
|
||||
|
||||
int uev_event_init (uev_ctx_t *ctx, uev_t *w, uev_cb_t *cb, void *arg);
|
||||
int uev_event_post (uev_t *w);
|
||||
int uev_event_stop (uev_t *w);
|
||||
|
||||
#endif /* LIBUEV_UEV_H_ */
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user