aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar zfl9 <zfl9.com@gmail.com> 2020-03-04 11:14:40 +0800
committerGravatar zfl9 <zfl9.com@gmail.com> 2020-03-04 11:14:40 +0800
commit1c1a99d2dcddfc8a77a3391dc965ae6b49ba1920 (patch)
treebfe883b97503a83825799d34ba155620bbeae046
parentuse libev instead of libuv (diff)
downloaddns2tcp-1c1a99d2dcddfc8a77a3391dc965ae6b49ba1920.tar.gz
dns2tcp-1c1a99d2dcddfc8a77a3391dc965ae6b49ba1920.tar.bz2
dns2tcp-1c1a99d2dcddfc8a77a3391dc965ae6b49ba1920.zip
add typedef alias for libev
-rw-r--r--libev/mylite.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/libev/mylite.h b/libev/mylite.h
index b66d624..66b8709 100644
--- a/libev/mylite.h
+++ b/libev/mylite.h
@@ -20,4 +20,9 @@
#define EV_CLEANUP_ENABLE 0 /* disable ev_cleanup watcher */
#define EV_ASYNC_ENABLE 0 /* disbale ev_async watcher */
+/* typedef alias */
+typedef struct ev_loop evloop_t;
+typedef struct ev_io evio_t;
+typedef struct ev_timer evtimer_t;
+
#endif