Wireshark-commits: [Wireshark-commits] master dd8311d: Lua: split init/cleanup routines

From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Sat, 4 Jul 2015 05:26:34 +0000 (UTC)
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=dd8311d2ed09c34fd7b7206ed9ea95b8cee7c85a
Submitter: Hadriel Kaplan (hadrielk@xxxxxxxxx)
Changed: branch: master
Repository: wireshark

Commits:

dd8311d by Hadriel Kaplan (hadrielk@xxxxxxxxx):

    Lua: split init/cleanup routines
    
    The epan init routines have been split up into init vs. cleanup, where the
    init routines are only invoked when a file is opened, and the cleanup ones are
    invoked multiple times, such as on a re-scan of packets.
    
    Since the Lua API's Proto.init() callback is supposed to be invoked at both
    init and cleanup times, the wslua code now invokes it in both of epan's init
    and cleanup routines.
    
    Change-Id: I51a4d8bc02630a4d2db5408c37f7eb8f6e0ce88c
    Reviewed-on: https://code.wireshark.org/review/9491
    Reviewed-by: Hadriel Kaplan <hadrielk@xxxxxxxxx>
    Petri-Dish: Hadriel Kaplan <hadrielk@xxxxxxxxx>
    Tested-by: Hadriel Kaplan <hadrielk@xxxxxxxxx>
    

Actions performed:

    from  c6f4112   Do error checking on simple_error_message_box() calls and fix errors.
    adds  dd8311d   Lua: split init/cleanup routines


Summary of changes:
 epan/wslua/init_wslua.c |   19 ++++++++++++++++++-
 1 file changed, 18 insertions(+), 1 deletion(-)