diff options
author | Tomas Kukosa <kukosa@herman.cz> | 2020-08-21 10:23:03 +0200 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2020-08-22 05:32:29 +0000 |
commit | 82a4968bc31b8fa85a3f45a583d8f7f71bd6737f (patch) | |
tree | aee68479aa48b221f570b2534703d63abbf1f542 /epan/plugin_if.h | |
parent | 7e46db8f866abae189f0d4cf616d4c4f733f2239 (diff) |
plugin_if: add plugin_if_get_frame_data() and plugin_if_get_capture_file()
Change-Id: I7505d4185f18d13d6836c9c9bb8f400d12f2a524
Reviewed-on: https://code.wireshark.org/review/38217
Petri-Dish: Tomáš Kukosa <keksa@email.cz>
Tested-by: Petri Dish Buildbot
Reviewed-by: Roland Knall <rknall@gmail.com>
Diffstat (limited to 'epan/plugin_if.h')
-rw-r--r-- | epan/plugin_if.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/epan/plugin_if.h b/epan/plugin_if.h index 21e23f5396..7791c66d15 100644 --- a/epan/plugin_if.h +++ b/epan/plugin_if.h @@ -382,6 +382,12 @@ typedef enum /* Gets status information about the currently loaded capture file */ PLUGIN_IF_GET_WS_INFO, + /* Gets information from frame_data for current packet */ + PLUGIN_IF_GET_FRAME_DATA, + + /* Gets information from capture_file */ + PLUGIN_IF_GET_CAPTURE_FILE, + /* Remove toolbar */ PLUGIN_IF_REMOVE_TOOLBAR @@ -404,6 +410,14 @@ WS_DLL_PUBLIC void plugin_if_goto_frame(guint32 framenr); /* Takes a snapshot of status information from Wireshark */ WS_DLL_PUBLIC void plugin_if_get_ws_info(ws_info_t ** ws_info); +typedef void* (*plugin_if_frame_data_cb)(frame_data*, void*); +/* Gets frame_data for current packet, data are extracted by extract_cb */ +WS_DLL_PUBLIC void* plugin_if_get_frame_data(plugin_if_frame_data_cb extract_cb, void *user_data); + +typedef void* (*plugin_if_capture_file_cb)(capture_file*, void*); +/* Gets capture_file, data are extracted by extract_cb */ +WS_DLL_PUBLIC void* plugin_if_get_capture_file(plugin_if_capture_file_cb extract_cb, void* user_data); + /* Private Method for retrieving the menubar entries * * Is only to be used by the UI interfaces to retrieve the menu entries |