From 5dfde7ff83a35bb7186cd05ce61f4b139ab01203 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Tue, 26 Mar 2019 14:52:39 -0700 Subject: Print extcap plugins with "tshark -G plugins". This makes it match the "Plugins" tab of the "About" dialog. While we're at it, use the same code to enumerate extcap plugins in that dialog. Change-Id: I50f402a7ab5d83d46baab070d145558ed8f688f4 Reviewed-on: https://code.wireshark.org/review/32589 Reviewed-by: Guy Harris --- extcap.h | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'extcap.h') diff --git a/extcap.h b/extcap.h index 55f4af7f69..bab57c27c2 100644 --- a/extcap.h +++ b/extcap.h @@ -20,6 +20,8 @@ #include #endif +#include + #include /* As boolean flags will be allowed any form of yes, true or any number != 0 (or starting with 0) @@ -87,14 +89,18 @@ extcap_get_tool_by_ifname(const gchar *ifname); gchar * extcap_get_help_for_ifname(const char *ifname); -/* get a list of all available extcap executables and their interfaces */ -GHashTable * -extcap_loaded_interfaces(void); - /* remove all loaded interfaces */ void extcap_clear_interfaces(void); +/* get information about all available extcap executables */ +void +extcap_get_descriptions(plugin_description_callback callback, void *callback_data); + +/* print information about all available extcap executables */ +void +extcap_dump_all(void); + /* returns the configuration for the given interface name, or an * empty list, if no configuration has been found * @param ifname the interface name -- cgit v1.2.3