Wireshark mailing list archives

Question about proto_register_subtree_array


From: Teto <mattator () gmail com>
Date: Tue, 6 Dec 2011 12:48:05 +0100

hi everybody,

I've trouble understanding what's the role of
proto_register_subtree_array. Each time I create a subtree, there is
the same message appending on top of the  subtree ("Energywise v2")
and I wish it would remain blank. I create my subtrees like this:
proto_item_add_subtree( uuid_item, ett_ew_uuid); for instance.
In the function which registers the plugin, I've got that:

    gint *ett[] = {
        &ett_ew_main_tree,
        &ett_ew_header_tree,
        &ett_energywise_tlv,
        &ett_ew_uuid,
        &ett_ew_list_of_answers
    };

    proto_energywise = proto_register_protocol("Energywise v2",
"EnergyWise", "ew");
    proto_register_field_array(proto_energywise, hf, array_length(hf));
    proto_register_subtree_array(ett, array_length(ett));

What's the aim of those tree identifiers ? Doxygen doc isn't clear about them.

Regards
Matt
___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev () wireshark org>
Archives:    http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-request () wireshark org?subject=unsubscribe


Current thread: