diff options
author | Guy Harris <guy@alum.mit.edu> | 2016-05-08 13:31:51 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2016-05-08 20:32:21 +0000 |
commit | 728e683b14517c6c9688666a8a7dd4ad35f807cf (patch) | |
tree | 0aa8f16daccfda0529feb0c96353aa689b952547 /epan/dissectors/packet-wap.h | |
parent | ac2169623e22a5281afa4ede84cec1167bbe6363 (diff) |
Handle the encoding when displaying the string table.
Don't just treate the strings as piles of ASCII characters.
Add a proto_tree_add_item_ret_string_and_length() routine to help do
this. Clean up some of the documentation of the proto_tree_add_item_ret
routines while we're at it.
Change-Id: Ib4c52bd8a8331eac97312583326f5be9175889d9
Reviewed-on: https://code.wireshark.org/review/15291
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'epan/dissectors/packet-wap.h')
-rw-r--r-- | epan/dissectors/packet-wap.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/epan/dissectors/packet-wap.h b/epan/dissectors/packet-wap.h index 4d4c32720f..e380d12b03 100644 --- a/epan/dissectors/packet-wap.h +++ b/epan/dissectors/packet-wap.h @@ -71,6 +71,9 @@ /* Utility function for reading Uintvar encoded values */ guint tvb_get_guintvar (tvbuff_t *, guint , guint *); +/* Map a charset to a Wireshark string encoding. */ +guint wap_charset_to_encoding (guint charset); + /* Character set encoding */ extern value_string_ext wap_mib_enum_vals_character_sets_ext; |