diff options
author | Guy Harris <gharris@sonic.net> | 2021-01-30 21:08:59 -0800 |
---|---|---|
committer | Guy Harris <gharris@sonic.net> | 2021-01-30 21:15:30 -0800 |
commit | 1f15c0899ee2d1f27b523928a39a49175bdc32b7 (patch) | |
tree | 977b0cdb81d094d7eb647a848b18bf620a47338a /tshark.c | |
parent | b2db1517be11f9402613220269f63c373b9bf785 (diff) |
epan: have a routine to register all tap listeners.
Pull the code to register plugin taps, and the loop to register built-in
taps, into a single register_all_tap_listeners() routine.
This leaves it up to libwireshark, not to the programs using it, to know
how to register them.
Diffstat (limited to 'tshark.c')
-rw-r--r-- | tshark.c | 13 |
1 files changed, 3 insertions, 10 deletions
@@ -938,17 +938,10 @@ main(int argc, char *argv[]) /* Register all tap listeners; we do this before we parse the arguments, as the "-z" argument can specify a registered tap. */ - /* we register the plugin taps before the other taps because - stats_tree taps plugins will be registered as tap listeners - by stats_tree_stat.c and need to registered before that */ -#ifdef HAVE_PLUGINS - register_all_plugin_tap_listeners(); -#endif + register_all_tap_listeners(tap_reg_listener); + extcap_register_preferences(); - /* 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_iousers); hostlist_table_set_gui_info(init_hostlists); srt_table_iterate_tables(register_srt_tables, NULL); |