luaevent/include/luaevent.h

changeset 11
8339f6236a3c
parent 10
88ce07d62597
equal deleted inserted replaced
10:88ce07d62597 11:8339f6236a3c
7 #include <sys/types.h> 7 #include <sys/types.h>
8 #include <sys/time.h> 8 #include <sys/time.h>
9 #include <event.h> 9 #include <event.h>
10 10
11 typedef struct { 11 typedef struct {
12 struct event_base* base;
13 lua_State* loop_L;
14 } le_base;
15
16 typedef struct {
12 struct event ev; 17 struct event ev;
13 lua_State* L; 18 le_base* base;
14 int callbackRef; 19 int callbackRef;
15 int objectRef; /* TEMP */
16 } le_callback; 20 } le_callback;
17 21
18 int luaopen_luaevent(lua_State* L); 22 int luaopen_luaevent(lua_State* L);
19 23
20 #endif 24 #endif

mercurial