From fb5f78f8c75ce907ae2796d4300c7f8053d20732 Mon Sep 17 00:00:00 2001 From: Thomas Harning Jr Date: Wed, 5 Sep 2007 23:33:46 -0400 Subject: Added support for timeouts and timers. --- include/event_callback.h | 1 + include/luaevent.h | 1 + 2 files changed, 2 insertions(+) (limited to 'include') 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); -- cgit v1.2.3