comparison: include/luaevent.h
include/luaevent.h
- changeset 13
- 3e2ea1e7b2e8
- child 20
- 71bc2e49366c
equal
deleted
inserted
replaced
|
1 /* LuaEvent - Copyright (C) 2007 Thomas Harning <harningt@gmail.com> |
|
2 * Licensed as LGPL - See doc/COPYING for details */ |
|
3 #ifndef LUAEVENT_H |
|
4 #define LUAEVENT_H |
|
5 |
|
6 #include <lua.h> |
|
7 #include <sys/types.h> |
|
8 #include <sys/time.h> |
|
9 #include <event.h> |
|
10 |
|
11 typedef struct { |
|
12 struct event_base* base; |
|
13 lua_State* loop_L; |
|
14 } le_base; |
|
15 |
|
16 typedef struct { |
|
17 struct event ev; |
|
18 le_base* base; |
|
19 int callbackRef; |
|
20 } le_callback; |
|
21 |
|
22 int luaopen_luaevent(lua_State* L); |
|
23 |
|
24 #endif |