diff options
author | Thomas Harning Jr <harningt@gmail.com> | 2007-09-05 23:33:46 -0400 |
---|---|---|
committer | Thomas Harning Jr <harningt@gmail.com> | 2007-09-05 23:33:46 -0400 |
commit | fb5f78f8c75ce907ae2796d4300c7f8053d20732 (patch) | |
tree | b4ba07932f35e29e431af481165812efab48769b /include | |
parent | 3bf12e614c65f22f012b35a19eafad28ad3d4ed5 (diff) | |
download | luaevent-prosody-fb5f78f8c75ce907ae2796d4300c7f8053d20732.tar.gz luaevent-prosody-fb5f78f8c75ce907ae2796d4300c7f8053d20732.zip |
Added support for timeouts and timers.
Diffstat (limited to 'include')
-rw-r--r-- | include/event_callback.h | 1 | ||||
-rw-r--r-- | include/luaevent.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/include/event_callback.h b/include/event_callback.h index cb34d8e..38aedb8 100644 --- a/include/event_callback.h +++ b/include/event_callback.h @@ -13,6 +13,7 @@ typedef struct { struct event ev; le_base* base; int callbackRef; + struct timeval timeout; } le_callback; int event_callback_register(lua_State* L); diff --git a/include/luaevent.h b/include/luaevent.h index e8b8f05..2424756 100644 --- a/include/luaevent.h +++ b/include/luaevent.h @@ -14,6 +14,7 @@ typedef struct { } le_base; le_base* event_base_get(lua_State* L, int idx); +void load_timeval(double time, struct timeval *tv); int luaopen_luaevent(lua_State* L); |