aboutsummaryrefslogtreecommitdiffstats
path: root/epan/proto.h
diff options
context:
space:
mode:
authorKovarththanan Rajaratnam <kovarththanan.rajaratnam@gmail.com>2009-08-09 17:33:23 +0000
committerKovarththanan Rajaratnam <kovarththanan.rajaratnam@gmail.com>2009-08-09 17:33:23 +0000
commit3512e485ca7cbea07c193f87f029cf5f6959d864 (patch)
tree41b31c399a92ff8fdd4281ab78884c37e6846e78 /epan/proto.h
parentd3174f0d03940b7dce1dcf625002b206b27b92fd (diff)
Add PNODE_FINFO. We've been using PITEM_FINFO on proto_node's. This works because proto_item is typedefed to proto_node. We shouldn't rely on this since this is an implementation detail.
svn path=/trunk/; revision=29354
Diffstat (limited to 'epan/proto.h')
-rw-r--r--epan/proto.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/epan/proto.h b/epan/proto.h
index 37e8fcda7e..32e83a0ac2 100644
--- a/epan/proto.h
+++ b/epan/proto.h
@@ -345,8 +345,11 @@ extern gboolean proto_tree_traverse_post_order(proto_tree *tree,
extern void proto_tree_children_foreach(proto_tree *tree,
proto_tree_foreach_func func, gpointer data);
+/** Retrieve the field_info from a proto_node */
+#define PNODE_FINFO(proto_node) ((proto_node)->finfo)
+
/** Retrieve the field_info from a proto_item */
-#define PITEM_FINFO(proto_item) ((proto_item)->finfo)
+#define PITEM_FINFO(proto_item) PNODE_FINFO(proto_item)
/** Retrieve the tree_data_t from a proto_tree */
#define PTREE_DATA(proto_tree) ((proto_tree)->tree_data)