Ethereal-dev: Re: [ethereal-dev] Confused about subtrees

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Guy Harris <gharris@xxxxxxxxxxxx>
Date: Wed, 5 Apr 2000 23:41:39 -0700
> > If this isn't in "doc/README.developer", we need to add it.
> 
> I'll look into that; I'm also updating it to reflect Gilbert's changes
> to split "proto_tree_add_item_format()" into multiple routines for
> different item types.

It was in "doc/README.developer", but perhaps it wasn't clear enough; I
just checked in the above, and "README.developer" now says:

	Subtrees can be made with the proto_item_add_subtree() function:

		item = proto_tree_add_item(....);
		new_tree = proto_item_add_subtree(item, tree_type);

	This will add a subtree under the item in question; a subtree
	can be created under an item made by any of the
	"proto_tree_add_XXX" functions, so that the tree can be given an
	arbitrary depth.

		...

which may make it clearer that you add subtrees under subtrees the same
way you add them under the top of a protocol's tree.