aboutsummaryrefslogtreecommitdiffstats
path: root/ui/gtk/main.c
diff options
context:
space:
mode:
authorJoão Valverde <joao.valverde@tecnico.ulisboa.pt>2017-12-10 17:29:40 +0000
committerJoão Valverde <j@v6e.pt>2017-12-11 02:52:28 +0000
commit5fc43fe63a07062587bc3d76256f4240221e8bc7 (patch)
tree8508ce04e5aec4e0e23ad958f9ec6a5102f93fc0 /ui/gtk/main.c
parent224e24884a8b37732105bd40a0ee85d5feaaeab1 (diff)
Rewrite make-tap-reg.py in C
Change-Id: Ief5b1fffecc9712c01ff10292c403b7c84a5908a Reviewed-on: https://code.wireshark.org/review/24756 Reviewed-by: João Valverde <j@v6e.pt>
Diffstat (limited to 'ui/gtk/main.c')
-rw-r--r--ui/gtk/main.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/ui/gtk/main.c b/ui/gtk/main.c
index 6c0e1c1466..075f4995bf 100644
--- a/ui/gtk/main.c
+++ b/ui/gtk/main.c
@@ -112,6 +112,7 @@
#include "ui/util.h"
#include "ui/dissect_opts.h"
#include "ui/commandline.h"
+#include "ui/taps.h"
#ifdef HAVE_LIBPCAP
#include "ui/capture_ui_utils.h"
@@ -2236,7 +2237,10 @@ main(int argc, char *argv[])
register_all_plugin_tap_listeners();
#endif
- register_all_tap_listeners();
+ /* Register all tap listeners. */
+ for (tap_reg_t *t = tap_reg_listener; t->cb_func != NULL; t++) {
+ t->cb_func();
+ }
conversation_table_set_gui_info(init_conversation_table);
hostlist_table_set_gui_info(init_hostlist_table);
srt_table_iterate_tables(register_service_response_tables, NULL);