wireshark/asn1/tcap
Peter Wu 3243b6f964 asn1: split off cleanup routines
General approach:

 1. Split allocation (e.g. g_hash_table_new) from deallocation
    (g_hash_table_destroy) into functions named "init" and "cleanup".
 2. Remove guards that test whether the hash tables are set as
    init is always called before cleanup.
 3. Remove setting hash tables to NULL after destruction.
 4. Copy register_init_routine function call and change init to cleanup.
 5. Add cleanup function that calls reassembly_table_destroy if there
    is a reassembly_table_init function.

Some templates were modified as follows:

 - snmp: split renew into init+cleanup, but keep renew for the uat_new
   callback.
 - ldap,ros: Rename init to cleanup as there was no initialization.
 - camel: remove init function from header, make it static. Remove debug
   print.
 - tcap: remove unused ssn_range assignment.

Files in epan/ were regenerated using cmake && make asn1

Change-Id: Idac16ebf0ec304e0c8becaab5d32904e56eb69b9
Reviewed-on: https://code.wireshark.org/review/9136
Reviewed-by: Michael Mann <mmann78@netscape.net>
2015-07-04 00:17:14 +00:00
..
CMakeLists.txt Remove $Id$ from the ASN.1 dissectors and regenerate them. 2014-02-18 03:05:28 +00:00
DialoguePDUs.asn Remove $Id$ from the ASN.1 dissectors and regenerate them. 2014-02-18 03:05:28 +00:00
Makefile.am Remove $Id$ from the ASN.1 dissectors and regenerate them. 2014-02-18 03:05:28 +00:00
Makefile.common Add more files to the distribution. 2014-07-31 04:31:10 +00:00
Makefile.nmake Remove $Id$ from the ASN.1 dissectors and regenerate them. 2014-02-18 03:05:28 +00:00
TC-Notation-Extensions.asn Move the ITU asn1 files to /tcap 2008-09-13 11:44:33 +00:00
TCAPMessages.asn Move the ITU asn1 files to /tcap 2008-09-13 11:44:33 +00:00
UnidialoguePDUs.asn Move the ITU asn1 files to /tcap 2008-09-13 11:44:33 +00:00
packet-tcap-template.c asn1: split off cleanup routines 2015-07-04 00:17:14 +00:00
packet-tcap-template.h TCAP: support dialogue confirmation 2015-01-19 03:08:54 +00:00
tcap.asn Remove $Id$ from the ASN.1 dissectors and regenerate them. 2014-02-18 03:05:28 +00:00
tcap.cnf Replace deprecated API tvb_length... with tvb_reported_length... 2015-04-09 11:41:32 +00:00