aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorThomas Harning Jr <harningt@gmail.com>2007-09-05 23:05:05 -0400
committerThomas Harning Jr <harningt@gmail.com>2007-09-05 23:05:05 -0400
commit3bf12e614c65f22f012b35a19eafad28ad3d4ed5 (patch)
tree1cd4679662e26c31c3b7a9125823df9d484fd179 /include
parentb28ac1f588e2e05069f4104400e1b3f7c2d8e460 (diff)
downloadluaevent-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.h4
-rw-r--r--include/luaevent.h2
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