Clean up callback registration in the setup-stage and register
common callbacks.
}
//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;