diff options
Diffstat (limited to 'epan/wslua/wslua.h')
-rw-r--r-- | epan/wslua/wslua.h | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/epan/wslua/wslua.h b/epan/wslua/wslua.h index 6490fa492e..b33e6a4422 100644 --- a/epan/wslua/wslua.h +++ b/epan/wslua/wslua.h @@ -121,6 +121,17 @@ struct _wslua_treeitem { proto_tree* tree; }; +typedef void (*tap_extractor_t)(lua_State*,const void*); + +struct _wslua_tap { + gchar* name; + gchar* filter; + tap_extractor_t extractor; + lua_State* L; + int packet_ref; + int draw_ref; + int init_ref; +}; #if GLIB_MAJOR_VERSION < 2 # define DIRECTORY_T DIR @@ -147,8 +158,6 @@ struct _wslua_dir { }; -typedef void (*tap_extractor_t)(lua_State*,const void*); - typedef struct { const char* name; tap_extractor_t extractor; } tappable_t; typedef struct {const gchar* str; enum ftenum id; } wslua_ft_types_t; @@ -328,5 +337,7 @@ extern void wslua_print_stack(char* s, lua_State* L); extern int wslua_init(lua_State* L); -extern int luaopen_libwireshark(lua_State* L); +extern tap_extractor_t wslua_get_tap_extractor(const gchar* name); +extern int wslua_set_tap_enums(lua_State* L); + #endif |