From 75ff25f2858709ba75aa22046e43ec7e6c3cd9aa Mon Sep 17 00:00:00 2001 From: Roland Knall Date: Tue, 12 Jan 2016 13:45:20 +0100 Subject: extcap: Add list of extcaps to about dialog MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adds the list of available extcaps to the plugin list in the About dialog of Wireshark (Qt only). To do this, and additional sentence is provided in the extcap arguments list, which allows for additional information to be passed (as of right now, just version and display is used) Additionally, cleans up the code when using g_free. Bug: 11683 Change-Id: I04a958e2b73c9a707ab1cb4f2fc8345833a854a9 Reviewed-on: https://code.wireshark.org/review/13224 Petri-Dish: Roland Knall Tested-by: Petri Dish Buildbot Reviewed-by: Stig Bjørlykke Reviewed-by: Roland Knall --- extcap.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'extcap.h') diff --git a/extcap.h b/extcap.h index fa334c59c6..74fc0b3b6d 100644 --- a/extcap.h +++ b/extcap.h @@ -49,6 +49,12 @@ #define EXTCAP_ARGUMENT_CAPTURE_FILTER "--extcap-capture-filter" #define EXTCAP_ARGUMENT_RUN_PIPE "--fifo" +typedef struct _extcap_info { + gchar * basename; + gchar * full_path; + gchar * version; +} extcap_info; + #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ @@ -61,6 +67,10 @@ extcap_get_if_dlts(const gchar * ifname, char ** err_str); GList * extcap_interface_list(char **err_str); +/* get a list of all available extcap tools */ +GHashTable * +extcap_tools_list(void); + /* returns the configuration for the given interface name, or an * empty list, if no configuration has been found */ GList * -- cgit v1.2.3