diff options
author | Guy Harris <guy@alum.mit.edu> | 2001-12-16 22:16:14 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2001-12-16 22:16:14 +0000 |
commit | 794f0c04f4948c824d64e8ee1a987c03e716082f (patch) | |
tree | 65ba1f083118e6d2db5fc9a0441f4cc4c80d76eb /epan/epan.c | |
parent | da82313eb3378fc8a179cb7abfebd0ba141daae6 (diff) | |
download | wireshark-794f0c04f4948c824d64e8ee1a987c03e716082f.tar.gz wireshark-794f0c04f4948c824d64e8ee1a987c03e716082f.tar.bz2 wireshark-794f0c04f4948c824d64e8ee1a987c03e716082f.zip |
Add an extra argument to "epan_dissect_new()" that indicates whether the
display representation should be put into protocol tree items if a
protocol tree is to be constructed; have it set "proto_tree_is_visible"
from that argument.
svn path=/trunk/; revision=4408
Diffstat (limited to 'epan/epan.c')
-rw-r--r-- | epan/epan.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/epan/epan.c b/epan/epan.c index 96e2b6bf8f..20edfb4b42 100644 --- a/epan/epan.c +++ b/epan/epan.c @@ -1,6 +1,6 @@ /* epan.h * - * $Id: epan.c,v 1.13 2001/12/10 00:26:16 guy Exp $ + * $Id: epan.c,v 1.14 2001/12/16 22:16:13 guy Exp $ * * Ethereal Protocol Analyzer Library * @@ -75,7 +75,8 @@ epan_conversation_init(void) epan_dissect_t* epan_dissect_new(void* pseudo_header, const guint8* data, frame_data *fd, - gboolean create_proto_tree, column_info *cinfo) + gboolean create_proto_tree, gboolean proto_tree_visible, + column_info *cinfo) { epan_dissect_t *edt; @@ -86,6 +87,12 @@ epan_dissect_new(void* pseudo_header, const guint8* data, frame_data *fd, g_slist_free( fd->data_src); fd->data_src = 0; + /* + * Set the global "proto_tree_is_visible" to control whether + * to fill in the text representation field in the protocol + * tree fields. + */ + proto_tree_is_visible = proto_tree_visible; if (create_proto_tree) { edt->tree = proto_tree_create_root(); } @@ -95,6 +102,8 @@ epan_dissect_new(void* pseudo_header, const guint8* data, frame_data *fd, dissect_packet(edt, pseudo_header, data, fd, cinfo); + proto_tree_is_visible = FALSE; + return edt; } |