From 3bf12e614c65f22f012b35a19eafad28ad3d4ed5 Mon Sep 17 00:00:00 2001 From: Thomas Harning Jr Date: Wed, 5 Sep 2007 23:05:05 -0400 Subject: Completely refactored event_callback creation out into event_callback. --- include/event_callback.h | 4 ++-- include/luaevent.h | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/event_callback.h b/include/event_callback.h index e6e60c4..cb34d8e 100644 --- a/include/event_callback.h +++ b/include/event_callback.h @@ -9,8 +9,6 @@ #include #include -#define EVENT_CALLBACK_ARG_MT "EVENT_CALLBACK_ARG_MT" - typedef struct { struct event ev; le_base* base; @@ -19,6 +17,8 @@ typedef struct { int event_callback_register(lua_State* L); +le_callback* event_callback_push(lua_State* L, int baseIdx, int callbackIdx); + void luaevent_callback(int fd, short event, void* p); #endif diff --git a/include/luaevent.h b/include/luaevent.h index ce2624e..e8b8f05 100644 --- a/include/luaevent.h +++ b/include/luaevent.h @@ -13,6 +13,8 @@ typedef struct { lua_State* loop_L; } le_base; +le_base* event_base_get(lua_State* L, int idx); + int luaopen_luaevent(lua_State* L); #endif -- cgit v1.2.3