aboutsummaryrefslogtreecommitdiffstats
path: root/epan/epan.h
diff options
context:
space:
mode:
authorKovarththanan Rajaratnam <kovarththanan.rajaratnam@gmail.com>2009-08-13 19:42:46 +0000
committerKovarththanan Rajaratnam <kovarththanan.rajaratnam@gmail.com>2009-08-13 19:42:46 +0000
commit80a6d3fbcf1d8ee469fbdb6c2d6423f942cbe712 (patch)
tree41a0430751c01d746062340b6b29c96147592b9f /epan/epan.h
parent97fda7386c87b840410a1804feee134ab0572276 (diff)
Introduce epan_dissect_init()/epan_dissect_cleanup(). These are used to initialise/cleanup stack allocated 'edt' structures. This should speed up dissection since we avoid some malloc traffic.
svn path=/trunk/; revision=29404
Diffstat (limited to 'epan/epan.h')
-rw-r--r--epan/epan.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/epan/epan.h b/epan/epan.h
index 2d5396f4cd..299818081f 100644
--- a/epan/epan.h
+++ b/epan/epan.h
@@ -85,6 +85,10 @@ epan_free(epan_t*);
extern gchar*
epan_get_version(void);
+/* initialize an existing single packet dissection */
+epan_dissect_t*
+epan_dissect_init(epan_dissect_t *edt, gboolean create_proto_tree, gboolean proto_tree_visible);
+
/* get a new single packet dissection */
/* should be freed using epan_dissect_free() after packet dissection completed */
epan_dissect_t*
@@ -107,6 +111,10 @@ epan_dissect_prime_dfilter(epan_dissect_t *edt, const dfilter_t *dfcode);
void
epan_dissect_fill_in_columns(epan_dissect_t *edt, gboolean fill_fd_colums);
+/* releases resources attached to the packet dissection. DOES NOT free the actual pointer */
+void
+epan_dissect_cleanup(epan_dissect_t* edt);
+
/* free a single packet dissection */
void
epan_dissect_free(epan_dissect_t* edt);