diff options
author | Pascal Quantin <pascal.quantin@gmail.com> | 2014-04-13 18:53:29 +0200 |
---|---|---|
committer | Pascal Quantin <pascal.quantin@gmail.com> | 2014-04-13 20:02:52 +0000 |
commit | cfe11b1097a53d5d62f1b7b9de3b816378527dae (patch) | |
tree | 77da630251ba4947d28290828b86da383c452b64 /epan/proto.h | |
parent | 63ed4745a2c3abef00ec69fa1b6832674fa17605 (diff) |
Add ENC_ASCII_7BITS encoding
Change-Id: I01ec87ff4181afb5b2de487fd5f5200f8d62f17d
Reviewed-on: https://code.wireshark.org/review/1088
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
Diffstat (limited to 'epan/proto.h')
-rw-r--r-- | epan/proto.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/epan/proto.h b/epan/proto.h index fdb4aaee00..1e05072099 100644 --- a/epan/proto.h +++ b/epan/proto.h @@ -309,6 +309,7 @@ WS_DLL_PUBLIC WS_MSVC_NORETURN void proto_report_dissector_bug(const char *messa #define ENC_EBCDIC 0x0000002E #define ENC_MAC_ROMAN 0x00000030 #define ENC_CP437 0x00000032 +#define ENC_ASCII_7BITS 0x00000034 /* * TODO: @@ -317,7 +318,6 @@ WS_DLL_PUBLIC WS_MSVC_NORETURN void proto_report_dissector_bug(const char *messa * * "IBM MS DBCS" * JIS C 6226 - * 7-bit encodings such as 7 bits ASCII used in packet-ansi_637.c * * As those are added, change code such as the code in packet-bacapp.c * to use them. @@ -2157,6 +2157,17 @@ WS_DLL_PUBLIC proto_item * proto_tree_add_ts_23_038_7bits_item(proto_tree *tree, const int hfindex, tvbuff_t *tvb, const guint bit_offset, const gint no_of_chars); +/** Add a FT_STRING with ENC_ASCII_7BITS encoding 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 bit_offset start of data in tvb expressed in bits + @param no_of_chars number of 7bits characters to display + @return the newly created item */ +WS_DLL_PUBLIC proto_item * +proto_tree_add_ascii_7bits_item(proto_tree *tree, const int hfindex, tvbuff_t *tvb, + const guint bit_offset, const gint no_of_chars); + /** Check if given string is a valid field name @param field_name the field name to check @return 0 if valid, else first illegal character */ |