Commit 723756f3 authored by Vysheng's avatar Vysheng

Updates to event-old.h

parent b522658b
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
#define __EVENT_OLD_H__ #define __EVENT_OLD_H__
#include <assert.h> #include <assert.h>
#include <stdlib.h>
#define BEV_EVENT_READ EVBUFFER_READ #define BEV_EVENT_READ EVBUFFER_READ
#define BEV_EVENT_WRITE EVBUFFER_WRITE #define BEV_EVENT_WRITE EVBUFFER_WRITE
...@@ -40,4 +41,8 @@ static struct bufferevent *bufferevent_socket_new (struct event_base *base, int ...@@ -40,4 +41,8 @@ static struct bufferevent *bufferevent_socket_new (struct event_base *base, int
bufferevent_base_set (base, bev); bufferevent_base_set (base, bev);
return bev; return bev;
} }
static inline void *event_get_callback_arg(const struct event *ev) {
return ev->ev_arg;
}
#endif #endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment