Wed, 13 Jun 2007 04:32:12 +0000
Setup management of socket create/close.
Recognized new bug: cannot create threads within threads... C contains reference to closed thread, not
global.
1
31c782cfe7fe
* Adjusted licensing and added README.
Thomas Harning Jr <harningt@gmail.com>
parents:
0
diff
changeset
|
1 | /* LuaEvent - Copyright (C) 2007 Thomas Harning <harningt@gmail.com> |
31c782cfe7fe
* Adjusted licensing and added README.
Thomas Harning Jr <harningt@gmail.com>
parents:
0
diff
changeset
|
2 | * Licensed as LGPL - See doc/COPYING for details */ |
0 | 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 ev; | |
13 | lua_State* L; | |
14 | int callbackRef; | |
10
88ce07d62597
Setup management of socket create/close.
Thomas Harning Jr <harningt@gmail.com>
parents:
1
diff
changeset
|
15 | int objectRef; /* TEMP */ |
0 | 16 | } le_callback; |
17 | ||
18 | int luaopen_luaevent(lua_State* L); | |
19 | ||
20 | #endif |