diff options
author | Roland Knall <roland.knall@br-automation.com> | 2017-02-21 17:28:32 +0100 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2017-02-22 13:40:33 +0000 |
commit | 6dce310305686c56b2502201c6aecc18f6ff760a (patch) | |
tree | e67679fb28267cfc273068500f86d75bb6b04bd4 /extcap.h | |
parent | 73ac6974c4db73846c37d811a02d17c1436eab47 (diff) |
extcap: Reduce number of scans and storage
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 <rknall@gmail.com>
Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
Reviewed-by: Roland Knall <rknall@gmail.com>
Diffstat (limited to 'extcap.h')
-rw-r--r-- | extcap.h | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -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 */ |