aboutsummaryrefslogtreecommitdiffstats
path: root/epan/proto.h
diff options
context:
space:
mode:
authorTomas Kukosa <tomas.kukosa@siemens.com>2005-07-04 13:04:53 +0000
committerTomas Kukosa <tomas.kukosa@siemens.com>2005-07-04 13:04:53 +0000
commitbab34b522b46bd46d47dc4cb448aed9ce4423d9f (patch)
treeaf5815fc3606f36fa87c2bcaed9c471aef9e5c57 /epan/proto.h
parent5f2fd433abc60c0e5f97613fbb18a00090dddc26 (diff)
new field type FT_GUID
svn path=/trunk/; revision=14845
Diffstat (limited to 'epan/proto.h')
-rw-r--r--epan/proto.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/epan/proto.h b/epan/proto.h
index 4deaad954c..3d6a14a09e 100644
--- a/epan/proto.h
+++ b/epan/proto.h
@@ -651,6 +651,38 @@ extern proto_item *
proto_tree_add_ether_format(proto_tree *tree, int hfindex, tvbuff_t *tvb, gint start,
gint length, const guint8* value, const char *format, ...) GNUC_FORMAT_CHECK(printf,7,8);
+/** Add a FT_GUID to a proto_tree.
+ @param tree the tree to append this item to
+ @param hfindex field index
+ @param tvb the tv buffer of the current data
+ @param start start of data in tvb
+ @param length length of data in tvb
+ @param value_ptr data to display
+ @return the newly created item */
+extern proto_item *
+proto_tree_add_guid(proto_tree *tree, int hfindex, tvbuff_t *tvb, gint start,
+ gint length, const guint8* value_ptr);
+
+/** Add a hidden FT_GUID to a proto_tree.
+ @deprecated use proto_tree_add_guid() and a subsequent call to PROTO_ITEM_SET_HIDDEN() instead */
+extern proto_item *
+proto_tree_add_guid_hidden(proto_tree *tree, int hfindex, tvbuff_t *tvb, gint start,
+ gint length, const guint8* value_ptr);
+
+/** Add a formatted FT_GUID to a proto_tree.
+ @param tree the tree to append this item to
+ @param hfindex field index
+ @param tvb the tv buffer of the current data
+ @param start start of data in tvb
+ @param length length of data in tvb
+ @param value_ptr data to display
+ @param format printf like format string
+ @param ... printf like parameters
+ @return the newly created item */
+extern proto_item *
+proto_tree_add_guid_format(proto_tree *tree, int hfindex, tvbuff_t *tvb, gint start,
+ gint length, const guint8* value_ptr, const char *format, ...) GNUC_FORMAT_CHECK(printf,7,8);
+
/** Add a FT_STRING to a proto_tree.
@param tree the tree to append this item to
@param hfindex field index