From Oleg Kostenko:
[obnox/wireshark/wip.git] / epan / proto.h
index 43e054b700a055367c5bc994bd6f313a7372abf3..ead06e0fd414092e8a3e582eaa3c58d5290a4c3c 100644 (file)
@@ -389,8 +389,8 @@ extern int proto_item_get_len(proto_item *ti);
 /**
  * Sets an expert info to the proto_item.
  @param ti the item to set the expert info
- @param group the group of this info (e.g. FI_CHECKSUM)
- @param severity of this info (e.g. FI_ERROR)
+ @param group the group of this info (e.g. PI_CHECKSUM)
+ @param severity of this info (e.g. PI_ERROR)
  @return TRUE if value was written
  */
 extern gboolean proto_item_set_expert_flags(proto_item *ti, int group, int severity);
@@ -427,6 +427,11 @@ proto_tree_prime_hfid(proto_tree *tree, int hfid);
  @return parent item */
 extern proto_item* proto_tree_get_parent(proto_tree *tree);
 
+/** Get the root tree from any subtree.
+ @param tree the tree to get the root from
+ @return root tree */
+extern proto_tree* proto_tree_get_root(proto_tree *tree);
+
 /** Move an existing item behind another existing item.
  @param tree the tree to which both items belong
  @param fixed_item the item which keeps it's position