output-json-tls.c output-json-tls.h \
output-lua.c output-lua.h \
output-lua-common.c output-lua-common.h \
-output-lua-http.c output-lua-http.h \
output-packet.c output-packet.h \
output-streaming.c output-streaming.h \
output-tx.c output-tx.h \
util-logopenfile.h util-logopenfile.c \
util-logopenfile-tile.h util-logopenfile-tile.c \
util-lua.c util-lua.h \
+util-lua-http.c util-lua-http.h \
util-magic.c util-magic.h \
util-memcmp.c util-memcmp.h \
util-memcpy.h \
#include "util-lua.h"
#include "output-lua-common.h"
-#include "output-lua-http.h"
+#include "util-lua-http.h"
#define MODULE_NAME "LuaLog"
LogLuaRegisterFunctions(luastate);
/* unconditionally register http function. They will only work
* if the tx is registered in the state at runtime though. */
- LogLuaRegisterHttpFunctions(luastate);
+ LuaRegisterHttpFunctions(luastate);
if (lua_pcall(luastate, 0, 0, 0) != 0) {
SCLogError(SC_ERR_LUA_ERROR, "couldn't run script 'setup' function: %s", lua_tostring(luastate, -1));
}
/** \brief register http lua extensions in a luastate */
-int LogLuaRegisterHttpFunctions(lua_State *luastate)
+int LuaRegisterHttpFunctions(lua_State *luastate)
{
/* registration of the callbacks */
lua_pushcfunction(luastate, HttpGetRequestHeader);
* \author Victor Julien <victor@inliniac.net>
*/
-#ifndef __OUTPUT_LUA_HTTP_H__
-#define __OUTPUT_LUA_HTTP_H__
+#ifndef __UTIL_LUA_HTTP_H__
+#define __UTIL_LUA_HTTP_H__
#ifdef HAVE_LUA
-int LogLuaRegisterHttpFunctions(lua_State *luastate);
+int LuaRegisterHttpFunctions(lua_State *luastate);
#endif /* HAVE_LUA */
-#endif /* __OUTPUT_LUA_HTTP_H__ */
+#endif /* __UTIL_LUA_HTTP_H__ */