Wireshark-dev: Re: [Wireshark-dev] proto_tree -> proto_item

From: Luca Ceresoli <list@xxxxxxxxxxxxxxxx>
Date: Thu, 26 Feb 2009 23:26:35 +0100
wsgd ha scritto:
 From proto.h :
/** A protocol tree element. */
typedef proto_node proto_tree;
/** A protocol item element. */
typedef proto_node proto_item;
Wow.

From my superficial knowledge of wireshark's internals I've always found it very strange that item and tree are two distinct "objects". What's a tree node if not the root of a (possibly empty) subtree?
I really can't figure out the reason for such a choice.

Back to the original issue, it seems that a text item created by ptvcursor_add_text_with_subtree() cannot be _legally_ changed.

Luca