base/lua/test: updates buffer management to be compatible with Lua 5.2 and latest...
[luaevent.git] / include / event_callback.h
blob7bb7c5e64f0f527db80489e3b340fc32a5718ce3
1 /* LuaEvent - Copyright (C) 2007 Thomas Harning <harningt@gmail.com>
2 * Licensed as LGPL - See doc/COPYING for details */
3 #ifndef EVENT_CALLBACK
4 #define EVENT_CALLBACK
6 #include "luaevent.h"
8 typedef struct {
9 struct event ev;
10 le_base* base;
11 int callbackRef;
12 struct timeval timeout;
13 } le_callback;
15 void event_callback_register(lua_State* L);
17 le_callback* event_callback_push(lua_State* L, int baseIdx, int callbackIdx);
19 void luaevent_callback(int fd, short event, void* p);
21 #endif