Updates to event-old.h

This commit is contained in:
Vysheng 2014-11-10 14:16:46 +03:00
parent b522658be2
commit 723756f3ae

View File

@ -2,6 +2,7 @@
#define __EVENT_OLD_H__
#include <assert.h>
#include <stdlib.h>
#define BEV_EVENT_READ EVBUFFER_READ
#define BEV_EVENT_WRITE EVBUFFER_WRITE
@ -40,4 +41,8 @@ static struct bufferevent *bufferevent_socket_new (struct event_base *base, int
bufferevent_base_set (base, bev);
return bev;
}
static inline void *event_get_callback_arg(const struct event *ev) {
return ev->ev_arg;
}
#endif