|
suricata
|
#include "suricata-common.h"#include "threads.h"#include "threadvars.h"#include "output.h"#include "util-conf.h"#include "lua.h"#include "util-lua.h"#include "util-lua-common.h"
Go to the source code of this file.
Functions | |
| int | LuaCallbackError (lua_State *luastate, const char *msg) |
| const char * | LuaGetStringArgument (lua_State *luastate, int idx) |
| void | LuaPushTableKeyValueInt (lua_State *luastate, const char *key, int value) |
| void | LuaPushTableKeyValueBoolean (lua_State *luastate, const char *key, bool value) |
| void | LuaPushTableKeyValueString (lua_State *luastate, const char *key, const char *value) |
| Push a key plus string value to the stack. More... | |
| 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. More... | |
| void | LuaPushTableKeyValueArray (lua_State *luastate, const char *key, const uint8_t *value, size_t len) |
| int | LuaStateNeedProto (lua_State *luastate, AppProto alproto) |
Common function for Lua Output
Definition in file util-lua-common.c.
| int LuaCallbackError | ( | lua_State * | luastate, |
| const char * | msg | ||
| ) |
Definition at line 39 of file util-lua-common.c.
Referenced by LuaStateNeedProto().

| const char* LuaGetStringArgument | ( | lua_State * | luastate, |
| int | idx | ||
| ) |
Definition at line 46 of file util-lua-common.c.
References str.
| void LuaPushTableKeyValueArray | ( | lua_State * | luastate, |
| const char * | key, | ||
| const uint8_t * | value, | ||
| size_t | len | ||
| ) |
Definition at line 94 of file util-lua-common.c.
References len, and LuaPushStringBuffer().

| void LuaPushTableKeyValueBoolean | ( | lua_State * | luastate, |
| const char * | key, | ||
| bool | value | ||
| ) |
Definition at line 66 of file util-lua-common.c.
| void LuaPushTableKeyValueInt | ( | lua_State * | luastate, |
| const char * | key, | ||
| int | value | ||
| ) |
Definition at line 59 of file util-lua-common.c.
| 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.
Definition at line 86 of file util-lua-common.c.
References len.
| void LuaPushTableKeyValueString | ( | lua_State * | luastate, |
| const char * | key, | ||
| const char * | value | ||
| ) |
Push a key plus string value to the stack.
If value is NULL, string "(null")" will be put on the stack.
Definition at line 77 of file util-lua-common.c.
Definition at line 102 of file util-lua-common.c.
References Flow_::alproto, LuaCallbackError(), and LuaStateGetFlow().
