From bad81b517fc829ae90a65bc19f445bdee0c3d2bf Mon Sep 17 00:00:00 2001 From: Jakub Zawadzki Date: Sun, 20 Oct 2013 10:21:25 +0000 Subject: Reintroduce back epan_dissect_reset(), proto_tree_reset() This time it makes more sense, cause for each dissection we need two wmem allocators. Reseting wmem allocator is much faster than destroy & create. svn path=/trunk/; revision=52706 --- epan/epan.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'epan/epan.h') diff --git a/epan/epan.h b/epan/epan.h index cfa7a4d046..44f2d4c51b 100644 --- a/epan/epan.h +++ b/epan/epan.h @@ -152,6 +152,10 @@ WS_DLL_PUBLIC epan_dissect_t* epan_dissect_new(epan_t *session, const gboolean create_proto_tree, const gboolean proto_tree_visible); +WS_DLL_PUBLIC +void +epan_dissect_reset(epan_dissect_t *edt); + /** Indicate whether we should fake protocols or not */ WS_DLL_PUBLIC void -- cgit v1.2.3