aboutsummaryrefslogtreecommitdiffstats
path: root/extcap.c
diff options
context:
space:
mode:
authorRoland Knall <roland.knall@br-automation.com>2015-04-28 10:26:46 +0200
committerPascal Quantin <pascal.quantin@gmail.com>2015-05-05 09:35:10 +0000
commit5727ebe6890bc263b90b3a77435b7aa7ae0ca411 (patch)
tree28e492c5118ad14481c0759859fc59829a78686e /extcap.c
parentcdaad860720a17d889e759d9e263c5fcadaf36a2 (diff)
extcap: Implement QT extcap options
Implementing a button in the interface list, to bring up the extcap options dialog, as well as a dialog, which will be generated depending on the selected extcap options. Change-Id: I1733dc6a8c1a121089a9c353aff10bc4a53e86de Reviewed-on: https://code.wireshark.org/review/8224 Petri-Dish: Michal Labedzki <michal.labedzki@tieto.com> Reviewed-by: Roland Knall <rknall@gmail.com> Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
Diffstat (limited to 'extcap.c')
-rw-r--r--extcap.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/extcap.c b/extcap.c
index f02f86f678..339021971b 100644
--- a/extcap.c
+++ b/extcap.c
@@ -428,6 +428,32 @@ extcap_get_if_configuration(const char * ifname) {
return ret;
}
+gboolean
+extcap_has_configuration(const char * ifname) {
+ GList * arguments = 0;
+ GList * walker = 0, * item = 0;
+
+ gboolean found = FALSE;
+
+ arguments = extcap_get_if_configuration((const char *)( ifname ) );
+ walker = g_list_first(arguments);
+
+ while ( walker != NULL && ! found )
+ {
+ item = g_list_first((GList *)(walker->data));
+ while ( item != NULL && ! found )
+ {
+ if ( (extcap_arg *)(item->data) != NULL )
+ found = TRUE;
+
+ item = item->next;
+ }
+ walker = walker->next;
+ }
+
+ return found;
+}
+
void extcap_cleanup(capture_options * capture_opts) {
interface_options interface_opts;
guint icnt = 0;