From 723756f3ae69bb745468cb3cfd9ccbf3b042a4f8 Mon Sep 17 00:00:00 2001 From: Vysheng Date: Mon, 10 Nov 2014 14:16:46 +0300 Subject: [PATCH] Updates to event-old.h --- event-old.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/event-old.h b/event-old.h index 98d3344..b920e68 100644 --- a/event-old.h +++ b/event-old.h @@ -2,6 +2,7 @@ #define __EVENT_OLD_H__ #include +#include #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