Logo Search packages:      
Sourcecode: wireshark version File versions

proto_tree* proto_item_add_subtree ( proto_item ti,
gint  idx 
)

Create a subtree under an existing item.

Parameters:
ti the parent item of the new subtree
idx one of the ett_ array elements registered with proto_register_subtree_array()
Returns:
the new subtree

Definition at line 3442 of file proto.c.

References _header_field_info::parent, and _header_field_info::ref_count.

                                {
            header_field_info *parent_hfinfo;
            PROTO_REGISTRAR_GET_NTH(hfinfo->parent, parent_hfinfo);
            parent_hfinfo->ref_count++;
      }
}

proto_tree*
proto_item_add_subtree(proto_item *pi,  gint idx) {


Generated by  Doxygen 1.6.0   Back to index