Go to the documentation of this file.
24 #ifndef SURICATA_UTIL_LUA_H
25 #define SURICATA_UTIL_LUA_H
void LuaStateSetDirection(lua_State *luastate, int direction)
int LuaStateGetDirection(lua_State *luastate)
get packet pointer from the lua state
void LuaStateSetDetCtx(lua_State *luastate, DetectEngineThreadCtx *det_ctx)
void LuaStateSetSignature(lua_State *luastate, const Signature *s)
void LuaStateSetFile(lua_State *luastate, File *file)
void LuaReturnState(lua_State *s)
Flow * LuaStateGetFlow(lua_State *luastate)
get flow pointer from lua state
void LuaStateSetPacket(lua_State *luastate, Packet *p)
PacketAlert * LuaStateGetPacketAlert(lua_State *luastate)
get packet alert pointer from the lua state
struct lua_State lua_State
struct LuaStreamingBuffer_ LuaStreamingBuffer
File * LuaStateGetFile(lua_State *luastate)
get file pointer from the lua state
void LuaStateSetTX(lua_State *luastate, void *tx, const uint64_t tx_id)
int LuaPushStringBuffer(lua_State *luastate, const uint8_t *input, size_t input_len)
void * LuaStateGetTX(lua_State *luastate)
get tx pointer from the lua state
Per thread variable structure.
Packet * LuaStateGetPacket(lua_State *luastate)
get packet pointer from the lua state
void LuaStateSetStreamingBuffer(lua_State *luastate, LuaStreamingBuffer *b)
lua_State * LuaGetState(void)
int LuaPushInteger(lua_State *luastate, lua_Integer n)
void LuaPrintStack(lua_State *state)
dump stack from lua state to screen
ThreadVars * LuaStateGetThreadVars(lua_State *luastate)
get tv pointer from the lua state
Signature * LuaStateGetSignature(lua_State *luastate)
get signature pointer from the lua state
LuaStreamingBuffer * LuaStateGetStreamingBuffer(lua_State *luastate)
void LuaStateSetThreadVars(lua_State *luastate, ThreadVars *tv)
void LuaStateSetFlow(lua_State *luastate, Flow *f)
set a flow pointer in the lua state
DetectEngineThreadCtx * LuaStateGetDetCtx(lua_State *luastate)
get detect engine thread context pointer from the lua state
uint64_t LuaStateGetTxId(lua_State *luastate)
get tx id from the lua state
void LuaStateSetPacketAlert(lua_State *luastate, PacketAlert *pa)