diff options
author | Jakub Zawadzki <darkjames-ws@darkjames.pl> | 2012-06-19 14:32:24 +0000 |
---|---|---|
committer | Jakub Zawadzki <darkjames-ws@darkjames.pl> | 2012-06-19 14:32:24 +0000 |
commit | 85aad383470b677d8aa2e340536afe917d9c9907 (patch) | |
tree | f53c0486dfcd60b49fe337935db69292996a71d9 /epan/proto.h | |
parent | 7c59ac028086d017ad82498ed1acafcb4ed0c05b (diff) |
Add proto_tree_add_unicode_string() to add UTF-8 string to tree.
Convert some proto_tree_add_string_format_value(..., val, "%s", val); to use new function.
svn path=/trunk/; revision=43363
Diffstat (limited to 'epan/proto.h')
-rw-r--r-- | epan/proto.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/epan/proto.h b/epan/proto.h index ec73f65308..6e140d5d06 100644 --- a/epan/proto.h +++ b/epan/proto.h @@ -1215,6 +1215,10 @@ extern proto_item * proto_tree_add_string_format(proto_tree *tree, int hfindex, tvbuff_t *tvb, gint start, gint length, const char* value, const char *format, ...) G_GNUC_PRINTF(7,8); +extern proto_item * +proto_tree_add_unicode_string(proto_tree *tree, int hfindex, tvbuff_t *tvb, gint start, + gint length, const char* value); + /** Add a FT_BOOLEAN to a proto_tree. @param tree the tree to append this item to @param hfindex field index |