24#ifndef SURICATA_UTIL_LUA_COMMON_H
25#define SURICATA_UTIL_LUA_COMMON_H
27#define DEFAULT_LUA_ALLOC_LIMIT 500000
28#define DEFAULT_LUA_INSTRUCTION_LIMIT 500000
37 lua_State *luastate,
const char *key,
const char *value,
size_t len);
45#define LUA_ERROR(msg) \
46 LuaCallbackError(luastate, (msg)); \
struct lua_State lua_State
void LuaPushTableKeyValueArray(lua_State *luastate, const char *key, const uint8_t *value, size_t len)
void LuaPushTableKeyValueString(lua_State *luastate, const char *key, const char *value)
Push a key plus string value to the stack.
void LuaPushTableKeyValueInt(lua_State *luastate, const char *key, int value)
int LuaStateNeedProto(lua_State *luastate, AppProto alproto)
const char * LuaGetStringArgument(lua_State *luastate, int argc)
void LuaPushTableKeyValueLString(lua_State *luastate, const char *key, const char *value, size_t len)
Push a key plus string value with length to the stack.
int LuaCallbackError(lua_State *luastate, const char *msg)
void LuaPushTableKeyValueBoolean(lua_State *luastate, const char *key, bool value)