diff options
author | Guy Harris <guy@alum.mit.edu> | 2016-12-04 13:42:07 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2016-12-04 21:42:44 +0000 |
commit | ab07f8e0f89eb1bb2c2c61c71e44e3fd0e31cc52 (patch) | |
tree | 20210444e46c0c198c62d47fa6619ce8cfd832f0 /wireshark-qt.cpp | |
parent | 51d23c6959edfbf45033ba26237820fa2914ff77 (diff) |
Have a routine to do all the work of initializing libwiretap.
Have programs that use libwiretap call that routine rather than
separately calling some or all of init_open_routines(),
wtap_register_plugin_types(), and wtap_opttypes_initialize().
Also don't have routines internal to libwiretap call those. Yes, this
means doing some initialization work when it isn't necessary, but
scattering on-demand calls throughout the code is a great way to forget
to make those calls.
Change-Id: I5828e1c5591c9d94fbb3eb0a0e54591e8fc61710
Reviewed-on: https://code.wireshark.org/review/19069
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'wireshark-qt.cpp')
-rw-r--r-- | wireshark-qt.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/wireshark-qt.cpp b/wireshark-qt.cpp index 0cc8664140..504ff0a6f8 100644 --- a/wireshark-qt.cpp +++ b/wireshark-qt.cpp @@ -537,12 +537,11 @@ int main(int argc, char *qt_argv[]) init_report_err(vfailure_alert_box, open_failure_alert_box, read_failure_alert_box, write_failure_alert_box); - init_open_routines(); + wtap_init(); #ifdef HAVE_PLUGINS /* Register all the plugin types we have. */ epan_register_plugin_types(); /* Types known to libwireshark */ - wtap_register_plugin_types(); /* Types known to libwiretap */ codec_register_plugin_types(); /* Types known to libwscodecs */ /* Scan for plugins. This does *not* call their registration routines; |