diff options
author | Bill Meier <wmeier@newsguy.com> | 2010-11-12 19:48:30 +0000 |
---|---|---|
committer | Bill Meier <wmeier@newsguy.com> | 2010-11-12 19:48:30 +0000 |
commit | cfdd78166fe742e2542ecd33588f09446bc7df59 (patch) | |
tree | 35e6efc6d3293430825377f9297cacf781ea6ca7 /epan/value_string.c | |
parent | e2123574dc110c451867603b0c3d18b286a36541 (diff) |
Enhance 'tshark -G values': Add info about extended value strings (including acess method).
svn path=/trunk/; revision=34854
Diffstat (limited to 'epan/value_string.c')
-rw-r--r-- | epan/value_string.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/epan/value_string.c b/epan/value_string.c index 4c54b03743..98c36ed6ee 100644 --- a/epan/value_string.c +++ b/epan/value_string.c @@ -297,6 +297,19 @@ _match_strval_ext_init(const guint32 val, value_string_ext *vse) return vse->_vs_match(val, vse); } + +/* (For use by proto_registrar_dump_values() [See proto.c]) */ +gchar * +value_string_ext_match_type_str(value_string_ext *vse) { + if (vse->_vs_match == _match_strval_linear) + return "[Linear Search]"; + if (vse->_vs_match == _match_strval_bsearch) + return "[Binary Search]"; + if (vse->_vs_match == _match_strval_index) + return "[Direct (indexed) Access]"; + return "[Match Type not initialized]"; +} + /* ----------- */ /* Tries to match val against each element in the value_string array vs. |