path: root/extcap.h
diff options
authorGuy Harris <guy@alum.mit.edu>2019-03-26 14:52:39 -0700
committerGuy Harris <guy@alum.mit.edu>2019-03-26 21:53:20 +0000
commit5dfde7ff83a35bb7186cd05ce61f4b139ab01203 (patch)
treeda189e284802e0ddf7c5c7a27d4b28e0eaa7ed90 /extcap.h
parent4e688ec8dac91e0ae1887da189f301fcf12534d2 (diff)
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 <guy@alum.mit.edu>
Diffstat (limited to 'extcap.h')
1 files changed, 10 insertions, 4 deletions
diff --git a/extcap.h b/extcap.h
index 55f4af7f69..bab57c27c2 100644
--- a/extcap.h
+++ b/extcap.h
@@ -20,6 +20,8 @@
#include <wsutil/unicode-utils.h>
+#include <wsutil/plugins.h>
#include <ui/capture_ui_utils.h>
/* 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 *
/* remove all loaded interfaces */
+/* get information about all available extcap executables */
+extcap_get_descriptions(plugin_description_callback callback, void *callback_data);
+/* print information about all available extcap executables */
/* returns the configuration for the given interface name, or an
* empty list, if no configuration has been found
* @param ifname the interface name