Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-commits: [Wireshark-commits] master ab07f8e: Have a routine to do all the work of initial

From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Sun, 4 Dec 2016 21:43:09 +0000 (UTC)
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=ab07f8e0f89eb1bb2c2c61c71e44e3fd0e31cc52
Submitter: Guy Harris (guy@xxxxxxxxxxxx)
Changed: branch: master
Repository: wireshark

Commits:

ab07f8e by Guy Harris (guy@xxxxxxxxxxxx):

    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@xxxxxxxxxxxx>
    

Actions performed:

    from  51d23c6   Show codec information in About dialog
    adds  ab07f8e   Have a routine to do all the work of initializing libwiretap.


Summary of changes:
 capinfos.c                  |    6 ++----
 captype.c                   |    6 ++----
 editcap.c                   |    6 ++----
 extcap/androiddump.c        |    3 +--
 mergecap.c                  |    6 ++----
 randpkt.c                   |    6 ++----
 randpkt_core/randpkt_core.c |    2 +-
 reordercap.c                |    6 ++----
 tfshark.c                   |    2 +-
 tshark.c                    |    3 +--
 ui/gtk/main.c               |    3 +--
 wireshark-qt.cpp            |    3 +--
 wiretap/file_access.c       |    7 -------
 wiretap/wtap.c              |   21 +++++++++++++++------
 wiretap/wtap.h              |    6 ++++--
 15 files changed, 37 insertions(+), 49 deletions(-)