From 6dce310305686c56b2502201c6aecc18f6ff760a Mon Sep 17 00:00:00 2001 From: Roland Knall Date: Tue, 21 Feb 2017 17:28:32 +0100 Subject: extcap: Reduce number of scans and storage MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reduce the number of storage arrays and the number of necessary loads. Also include cleaner methods for reloading the interfaces and cleanly reload if asked by the overall system Change-Id: I529465ec2593d40c955c6cdeaf3a85e3021c0596 Reviewed-on: https://code.wireshark.org/review/20230 Petri-Dish: Roland Knall Reviewed-by: Stig Bjørlykke Reviewed-by: Roland Knall --- extcap.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'extcap.h') diff --git a/extcap.h b/extcap.h index d066d9d2a9..9f398d1b5c 100644 --- a/extcap.h +++ b/extcap.h @@ -55,6 +55,8 @@ typedef struct _extcap_info { gchar * basename; gchar * full_path; gchar * version; + + GList * interfaces; } extcap_info; struct _extcap_arg; @@ -83,9 +85,13 @@ append_extcap_interface_list(GList *list, char **err_str); gchar * extcap_get_help_for_ifname(const char *ifname); -/* get a list of all available extcap tools */ +/* get a list of all available extcap executables and their interfaces */ GHashTable * -extcap_tools_list(void); +extcap_loaded_interfaces(void); + +/* remove all loaded interfaces */ +void +extcap_clear_interfaces(void); /* returns the configuration for the given interface name, or an * empty list, if no configuration has been found */ -- cgit v1.2.3