aboutsummaryrefslogtreecommitdiffstats
path: root/epan/packet.h
diff options
context:
space:
mode:
authorEvan Huus <eapache@gmail.com>2013-08-13 03:11:28 +0000
committerEvan Huus <eapache@gmail.com>2013-08-13 03:11:28 +0000
commita2b2885daf8c4a6dd9b4beda67d2d47ce974999d (patch)
treeb0b2f51350dc676e5a15edceb19fcefe14436153 /epan/packet.h
parent14b098baf7ac4ba8382b4038fd717b5e186c03b8 (diff)
Create the dissector hash table in only one place, and specify that its values
should be freed when it is destroyed. This requires splitting packet_init in two: the hash table which must be created before protocol registration, and the caching of common protocol handles, which must happen after registration. svn path=/trunk/; revision=51329
Diffstat (limited to 'epan/packet.h')
-rw-r--r--epan/packet.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/epan/packet.h b/epan/packet.h
index cf01285db6..fad7a27d79 100644
--- a/epan/packet.h
+++ b/epan/packet.h
@@ -84,6 +84,7 @@ typedef struct _packet_counts {
#define PACKET_COUNTS_SIZE sizeof(packet_counts) / sizeof (gint)
extern void packet_init(void);
+extern void packet_cache_proto_handles(void);
extern void packet_cleanup(void);
/* Handle for dissectors you call directly or register with "dissector_add_uint()".