diff options
author | zfl9 <zfl9.com@gmail.com> | 2020-05-04 10:38:32 +0800 |
---|---|---|
committer | zfl9 <zfl9.com@gmail.com> | 2020-05-04 10:38:32 +0800 |
commit | 3547eaf8f9a1f675f9f0cb2452578e555af64d8c (patch) | |
tree | ade73bc18ce6a1c9d05ae8b8c5153a96413c09ea /libev/mylite.h | |
parent | replace '%.o: %.c' with '.c.o:' (makefile) (diff) | |
download | dns2tcp-3547eaf8f9a1f675f9f0cb2452578e555af64d8c.tar.gz dns2tcp-3547eaf8f9a1f675f9f0cb2452578e555af64d8c.tar.bz2 dns2tcp-3547eaf8f9a1f675f9f0cb2452578e555af64d8c.zip |
update libev to 4.33
Diffstat (limited to 'libev/mylite.h')
-rw-r--r-- | libev/mylite.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/libev/mylite.h b/libev/mylite.h index 66b8709..66d716f 100644 --- a/libev/mylite.h +++ b/libev/mylite.h @@ -1,7 +1,7 @@ #ifndef MY_LITE_H #define MY_LITE_H -/* libev-4.31 */ +/* libev-4.33 */ #define EV_STANDALONE 1 /* manual configuration */ #define EV_COMPAT3 0 /* remove compatible code */ #define EV_VERIFY 0 /* remove verification code */ @@ -20,9 +20,13 @@ #define EV_CLEANUP_ENABLE 0 /* disable ev_cleanup watcher */ #define EV_ASYNC_ENABLE 0 /* disbale ev_async watcher */ -/* typedef alias */ +/* typedef struct */ typedef struct ev_loop evloop_t; typedef struct ev_io evio_t; typedef struct ev_timer evtimer_t; +/* typedef callback */ +typedef void (*evio_cb_t)(evloop_t *evloop, evio_t *watcher, int revents); +typedef void (*evtimer_cb_t)(evloop_t *evloop, evtimer_t *watcher, int revents); + #endif |