--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/include/event_callback.h Wed Sep 05 22:48:49 2007 -0400 @@ -0,0 +1,24 @@ +/* LuaEvent - Copyright (C) 2007 Thomas Harning <harningt@gmail.com> + * Licensed as LGPL - See doc/COPYING for details */ +#ifndef EVENT_CALLBACK +#define EVENT_CALLBACK + +#include "luaevent.h" +#include <lua.h> +#include <sys/types.h> +#include <sys/time.h> +#include <event.h> + +#define EVENT_CALLBACK_ARG_MT "EVENT_CALLBACK_ARG_MT" + +typedef struct { + struct event ev; + le_base* base; + int callbackRef; +} le_callback; + +int event_callback_register(lua_State* L); + +void luaevent_callback(int fd, short event, void* p); + +#endif