diff options
Diffstat (limited to 'src/luaevent.c')
-rw-r--r-- | src/luaevent.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/luaevent.c b/src/luaevent.c index d352cdc..c9b5430 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> @@ -109,6 +110,14 @@ static namedInteger consts[] = { {"EV_READ", EV_READ}, {"EV_WRITE", EV_WRITE}, {"EV_TIMEOUT", EV_TIMEOUT}, + {"EV_SIGNAL", EV_SIGNAL}, + {"EV_PERSIST", EV_PERSIST}, + /* bufferevent */ + {"EVBUFFER_READ", EVBUFFER_READ}, + {"EVBUFFER_WRITE", EVBUFFER_WRITE}, + {"EVBUFFER_EOF", EVBUFFER_EOF}, + {"EVBUFFER_ERROR", EVBUFFER_ERROR}, + {"EVBUFFER_TIMEOUT", EVBUFFER_TIMEOUT}, {NULL, 0} }; @@ -131,6 +140,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); |