aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
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