Wireshark 4.5.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
wslua_file_common.h
Go to the documentation of this file.
1
16/* See wslua_file_common.c for details */
17
18#include "wslua.h"
20#include <wiretap/wtap-int.h>
21
22/* this is way overkill for this one member, but in case we need to add
23 more in the future, the plumbing will be here */
24typedef struct _file_priv_t {
25 int table_ref;
27
28/* create and set the wtap->priv private data for the file instance */
29extern void create_wth_priv(lua_State* L, wtap *wth);
30
31/* gets the private data table from wtap */
32extern int get_wth_priv_table_ref(lua_State* L, wtap *wth);
33
34/* sets the private data to wtap - the table is presumed on top of stack */
35extern int set_wth_priv_table_ref(lua_State* L, wtap *wth);
36
37/* remove, deref, and free the wtap->priv data */
38extern void remove_wth_priv(lua_State* L, wtap *wth);
39
40/* create and set the wtap_dumper->priv private data for the file instance */
41extern void create_wdh_priv(lua_State* L, wtap_dumper *wdh);
42
43/* get the private data from wtap_dumper */
44extern int get_wdh_priv_table_ref(lua_State* L, wtap_dumper *wdh);
45
46/* sets the private data to wtap - the table is presumed on top of stack */
47extern int set_wdh_priv_table_ref(lua_State* L, wtap_dumper *wdh);
48
49/* remove and deref the wtap_dumper->priv data */
50extern void remove_wdh_priv(lua_State* L, wtap_dumper *wdh);
51
52/* implemented in other c files than wslua_file_common.c */
53extern CaptureInfo* push_CaptureInfo(lua_State* L, wtap *wth, const bool first_time);
54extern CaptureInfoConst* push_CaptureInfoConst(lua_State* L, wtap_dumper *wdh);
55extern File* push_File(lua_State* L, FILE_T ft);
56extern File* push_Wdh(lua_State* L, wtap_dumper *wdh);
57extern FrameInfo* push_FrameInfo(lua_State* L, wtap_rec *rec, Buffer* buf);
58extern FrameInfoConst* push_FrameInfoConst(lua_State* L, const wtap_rec *rec, const uint8_t *pd);
59
60
61/*
62 * Editor modelines - https://www.wireshark.org/tools/modelines.html
63 *
64 * Local variables:
65 * c-basic-offset: 4
66 * tab-width: 8
67 * indent-tabs-mode: nil
68 * End:
69 *
70 * vi: set shiftwidth=4 tabstop=8 expandtab:
71 * :indentSize=4:tabSize=8:noTabs=true:
72 */
Definition wslua_file_common.h:24
Definition wslua.h:300
Definition wslua.h:312
Definition wslua.h:293
Definition wslua.h:306
Definition buffer.h:22
Definition wtap-int.h:98
Definition file_wrappers.c:222
Definition wtap.h:1432
Definition wtap-int.h:37