Re: [Wireshark-dev] How to retrieve text displayed for a proto_item ?

2011-12-29 Thread Stephen Fisher
On Fri, 23 Dec 2011 06:17:22 -0700 Teto wrote >Thx for the quick answer as usual. > >> Note this won't pass the inspection by reviewers. >That was dissuasive ^^ >I've done like you said, using a temp GString* , thanks for the advice See also doc/README.developer section 1.1.2 which t

Re: [Wireshark-dev] How to retrieve text displayed for a proto_item ?

2011-12-23 Thread Teto
Thx for the quick answer as usual. > Note this won't pass the inspection by reviewers. That was dissuasive ^^ I've done like you said, using a temp GString* , thanks for the advice Matt On Thu, Dec 22, 2011 at 4:24 PM, Jaap Keuter wrote: > On 2011-12-22 15:25, Teto wrote: > >> Hi everybody, >>

Re: [Wireshark-dev] How to retrieve text displayed for a proto_item ?

2011-12-22 Thread Jaap Keuter
On 2011-12-22 15:25, Teto wrote: Hi everybody, Easy question despite I couldn't find the answer. Here is an example - not a real one - of what I would like to do: proto_item* pi = proto_tree_add_text(tree, tvb, offset, 4, "Sub-tlvs number" ); col_add_fstr(cinfo, COL_INFO, "test: %s" , get_di

[Wireshark-dev] How to retrieve text displayed for a proto_item ?

2011-12-22 Thread Teto
Hi everybody, Easy question despite I couldn't find the answer. Here is an example - not a real one - of what I would like to do: proto_item* pi = proto_tree_add_text(tree, tvb, offset, 4, "Sub-tlvs number" ); col_add_fstr(cinfo, COL_INFO, "test: %s" , get_displayed_text_of_proto_item(pi) ); It