output-lua: register common callbacks

Clean up callback registration in the setup-stage and register
common callbacks.
pull/1112/head
Victor Julien 12 years ago
parent 0070aef3d1
commit c5ff94a319

@ -431,10 +431,11 @@ static lua_State *LuaScriptSetup(const char *filename)
}
//LuaPrintStack(luastate);
if (1) { //http
if (LogLuaRegisterHttpFunctions(luastate) != 0)
SCLogInfo("boooh!");
}
/* register functions common to all */
LogLuaRegisterFunctions(luastate);
/* unconditionally register http function. They will only work
* if the tx is registered in the state at runtime though. */
LogLuaRegisterHttpFunctions(luastate);
SCLogDebug("lua_State %p is set up", luastate);
return luastate;

Loading…
Cancel
Save