aboutsummaryrefslogtreecommitdiffstats
path: root/epan/proto.h
diff options
context:
space:
mode:
authorJakub Zawadzki <darkjames-ws@darkjames.pl>2013-10-20 10:21:25 +0000
committerJakub Zawadzki <darkjames-ws@darkjames.pl>2013-10-20 10:21:25 +0000
commitbad81b517fc829ae90a65bc19f445bdee0c3d2bf (patch)
tree616ba0b0b52842c6808f86fa56329d42894f608a /epan/proto.h
parent107e4a6c803ebbbcdcccc06081587e06d2703d12 (diff)
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
Diffstat (limited to 'epan/proto.h')
-rw-r--r--epan/proto.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/epan/proto.h b/epan/proto.h
index 204b565278..273d74a764 100644
--- a/epan/proto.h
+++ b/epan/proto.h
@@ -709,6 +709,8 @@ WS_DLL_PUBLIC int proto_item_get_len(const proto_item *ti);
@return the new tree root */
extern proto_tree* proto_tree_create_root(struct _packet_info *pinfo);
+void proto_tree_reset(proto_tree *tree);
+
/** Clear memory for entry proto_tree. Clears proto_tree struct also.
@param tree the tree to free */
WS_DLL_PUBLIC void proto_tree_free(proto_tree *tree);