aboutsummaryrefslogtreecommitdiffstats
path: root/src/luaevent.c
diff options
context:
space:
mode:
authorThomas Harning Jr <harningt@gmail.com>2007-09-21 14:35:11 -0400
committerThomas Harning Jr <harningt@gmail.com>2007-09-21 14:35:11 -0400
commite652e93f7d73f67c6bb5299c9df14d42b66dba7d (patch)
tree57a6e77f4efbd2d37404e2ee627e154fe4a7940a /src/luaevent.c
parent68bd2b507fa935eb491479b10e53a97b17994cb5 (diff)
downloadluaevent-prosody-e652e93f7d73f67c6bb5299c9df14d42b66dba7d.tar.gz
luaevent-prosody-e652e93f7d73f67c6bb5299c9df14d42b66dba7d.zip
buffer_event is born, albeit w/ deformities. Can construct instances but not use, yet.
Diffstat (limited to 'src/luaevent.c')
-rw-r--r--src/luaevent.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/luaevent.c b/src/luaevent.c
index c1428c1..bac728b 100644
--- a/src/luaevent.c
+++ b/src/luaevent.c
@@ -4,6 +4,7 @@
#include "luaevent.h"
#include "event_callback.h"
#include "event_buffer.h"
+#include "buffer_event.h"
#include <lua.h>
#include <lauxlib.h>
@@ -121,6 +122,8 @@ int luaopen_luaevent_core(lua_State* L) {
/* Register external items */
event_callback_register(L);
event_buffer_register(L);
+ buffer_event_register(L);
+ lua_settop(L, 0);
/* Setup metatable */
luaL_newmetatable(L, EVENT_BASE_MT);
lua_newtable(L);