I have been trying to update a plugin(from 1.6 to 2.2). In the previous plugin, the following code was used to create a table data.
I have been trying to replace the proto_tree_add_text by proto_tree_add_item to achieve the same result, but without any success. Can someone please help me? Thanks a lot. asked 23 Feb '17, 07:10 xaheen edited 23 Feb '17, 08:10 grahamb ♦ |
One Answer:
You can use proto_tree_add_XXX_format() functions but combining several values on the same line defeats the possibility to filter individual items, so it is not encouraged. answered 24 Feb '17, 01:59 Pascal Quantin |
What they could do is create a top-level item with multiple values and then put each of the individual values as named fields underneath that top-level item.
Could you please tell me where I can find some example use of proto_tree_add_XXX_format()? Thanks @Pascal Quantin @Guy Harris
Proto_tree_add_string_format works perfectly! :D