include/event_callback.h

changeset 20
71bc2e49366c
child 22
48a109847dce
equal deleted inserted replaced
19:cbaa6e6ef285 20:71bc2e49366c
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
5
6 #include "luaevent.h"
7 #include <lua.h>
8 #include <sys/types.h>
9 #include <sys/time.h>
10 #include <event.h>
11
12 #define EVENT_CALLBACK_ARG_MT "EVENT_CALLBACK_ARG_MT"
13
14 typedef struct {
15 struct event ev;
16 le_base* base;
17 int callbackRef;
18 } le_callback;
19
20 int event_callback_register(lua_State* L);
21
22 void luaevent_callback(int fd, short event, void* p);
23
24 #endif

mercurial