diff options
author | Thomas Harning Jr <harningt@gmail.com> | 2007-09-05 23:05:05 -0400 |
---|---|---|
committer | Thomas Harning Jr <harningt@gmail.com> | 2007-09-05 23:05:05 -0400 |
commit | 3bf12e614c65f22f012b35a19eafad28ad3d4ed5 (patch) | |
tree | 1cd4679662e26c31c3b7a9125823df9d484fd179 /include | |
parent | b28ac1f588e2e05069f4104400e1b3f7c2d8e460 (diff) | |
download | luaevent-prosody-3bf12e614c65f22f012b35a19eafad28ad3d4ed5.tar.gz luaevent-prosody-3bf12e614c65f22f012b35a19eafad28ad3d4ed5.zip |
Completely refactored event_callback creation out into event_callback.
Diffstat (limited to 'include')
-rw-r--r-- | include/event_callback.h | 4 | ||||
-rw-r--r-- | include/luaevent.h | 2 |
2 files changed, 4 insertions, 2 deletions
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 <sys/time.h> #include <event.h> -#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 |