From 6542c181722792d78608f924d087fd1e5ae90377 Mon Sep 17 00:00:00 2001 From: Gilbert Ramirez Date: Thu, 6 Dec 2001 04:25:09 +0000 Subject: Remove proto_tree from capture_file and PacketWinData, since they already contain a pointer to an epan_dissect_t, which contains the proto_tree. Routines calling epan_dissect_new() do not create their own proto_tree via proto_tree_create_root(); instead, they pass a boolean to epan_dissect_new() telling it whether it should create the root proto_tree. svn path=/trunk/; revision=4343 --- epan/epan.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'epan/epan.h') diff --git a/epan/epan.h b/epan/epan.h index 263f3a806c..7741a2598f 100644 --- a/epan/epan.h +++ b/epan/epan.h @@ -1,6 +1,6 @@ /* epan.h * - * $Id: epan.h,v 1.8 2001/11/21 23:16:23 gram Exp $ + * $Id: epan.h,v 1.9 2001/12/06 04:25:08 gram Exp $ * * Ethereal Protocol Analyzer Library * @@ -55,7 +55,8 @@ typedef struct _epan_dissect_t { } epan_dissect_t; epan_dissect_t* -epan_dissect_new(void* pseudo_header, const guint8* data, frame_data *fd, proto_tree *tree); +epan_dissect_new(void* pseudo_header, const guint8* data, frame_data *fd, + gboolean create_proto_tree); void epan_dissect_free(epan_dissect_t* edt); -- cgit v1.2.3