Holds private Lua-managed state for a file handler instance; structured for extensibility should addi...
Definition wslua_file_common.h:27
int table_ref
Definition wslua_file_common.h:28
Wraps capture file metadata for access from the Lua scripting environment.
Definition wslua.h:381
Wraps a read-only wtap_rec and its associated raw packet data for access from the Lua scripting envir...
Definition wslua.h:398
Wraps a wtap file handle or wtap_dumper for read/write access from the Lua scripting environment.
Definition wslua.h:369
Wraps a wtap_rec for access from the Lua scripting environment, tracking validity.
Definition wslua.h:390
Wiretap dumper handle and associated state.
Definition wtap_module.h:163
Definition file_wrappers.c:96
Definition wtap_module.h:58
CaptureInfo * push_CaptureInfo(lua_State *L, wtap *wth, const bool first_time)
Pushes a CaptureInfo object onto the Lua stack.
Definition wslua_capture_info.c:38
struct _file_priv_t file_priv_t
Holds private Lua-managed state for a file handler instance; structured for extensibility should addi...
void remove_wdh_priv(lua_State *L, wtap_dumper *wdh)
Removes private data associated with a wtap_dumper.
Definition wslua_file_common.c:171
void create_wdh_priv(lua_State *L, wtap_dumper *wdh)
Creates private data for a wtap_dumper structure.
Definition wslua_file_common.c:110
int get_wth_priv_table_ref(lua_State *L, wtap *wth)
Retrieves the private data table reference from a wtap structure.
Definition wslua_file_common.c:46
void create_wth_priv(lua_State *L, wtap *wth)
Creates private data for a wtap structure.
Definition wslua_file_common.c:33
int set_wth_priv_table_ref(lua_State *L, wtap *wth)
Sets the private data table reference for a wtap structure.
Definition wslua_file_common.c:62
int get_wdh_priv_table_ref(lua_State *L, wtap_dumper *wdh)
Retrieves the private data table reference from a wtap_dumper structure.
Definition wslua_file_common.c:123
File * push_File(lua_State *L, FILE_T ft)
Pushes a File object onto the Lua stack.
Definition wslua_file.c:87
CaptureInfoConst * push_CaptureInfoConst(lua_State *L, wtap_dumper *wdh)
Pushes a CaptureInfoConst object onto the Lua stack.
Definition wslua_capture_info.c:322
File * push_Wdh(lua_State *L, wtap_dumper *wdh)
Pushes a wtap_dumper object to Lua.
Definition wslua_file.c:95
void remove_wth_priv(lua_State *L, wtap *wth)
Removes private data associated with a wtap structure.
Definition wslua_file_common.c:94
int set_wdh_priv_table_ref(lua_State *L, wtap_dumper *wdh)
Set or remove a Lua table reference in the wtap_dumper's private data.
Definition wslua_file_common.c:139
FrameInfoConst * push_FrameInfoConst(lua_State *L, const wtap_rec *rec, const uint8_t *pd)
Pushes a FrameInfoConst object onto the Lua stack.
Definition wslua_frame_info.c:342
FrameInfo * push_FrameInfo(lua_State *L, wtap_rec *rec)
Pushes a FrameInfo object onto the Lua stack.
Definition wslua_frame_info.c:43