diff options
author | Evan Huus <eapache@gmail.com> | 2014-12-09 21:35:01 -0500 |
---|---|---|
committer | Pascal Quantin <pascal.quantin@gmail.com> | 2014-12-15 21:09:35 +0000 |
commit | fafa686a684c499c53d71dc513e37d6c8b99a22e (patch) | |
tree | fd3e0f253dee7e0cc01fae0512a36443cd1b1c3b /epan/packet.h | |
parent | 27095f956ed68d53dec5d3a9cb46a7e66cfdb03f (diff) | |
download | wireshark-fafa686a684c499c53d71dc513e37d6c8b99a22e.tar.gz |
Enable case-insensitive string dissector tables
Permit passing TRUE as the parameter during table registration to achieve that
effect.
Use it in RTP media type table.
Bug: 10708
Change-Id: I892fb1a421d349f0c05197dec90f14fc34ad6b97
Reviewed-on: https://code.wireshark.org/review/5695
Reviewed-by: Evan Huus <eapache@gmail.com>
Petri-Dish: Evan Huus <eapache@gmail.com>
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
Diffstat (limited to 'epan/packet.h')
-rw-r--r-- | epan/packet.h | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/epan/packet.h b/epan/packet.h index 88783fe735..f37b2c0805 100644 --- a/epan/packet.h +++ b/epan/packet.h @@ -192,9 +192,14 @@ WS_DLL_PUBLIC void dissector_table_foreach_handle(const char *table_name, DATFun WS_DLL_PUBLIC void dissector_all_tables_foreach_table (DATFunc_table func, gpointer user_data, GCompareFunc compare_key_func); -/* a protocol uses the function to register a sub-dissector table */ +/* a protocol uses the function to register a sub-dissector table + * + * 'param' is the display base for integer tables, and TRUE/FALSE for + * string tables (true indicating case-insensitive, false indicating + * case-sensitive) + */ WS_DLL_PUBLIC dissector_table_t register_dissector_table(const char *name, - const char *ui_name, const ftenum_t type, const int base); + const char *ui_name, const ftenum_t type, const int param); /* Find a dissector table by table name. */ WS_DLL_PUBLIC dissector_table_t find_dissector_table(const char *name); @@ -206,9 +211,9 @@ WS_DLL_PUBLIC const char *get_dissector_table_ui_name(const char *name); given the table's internal name */ WS_DLL_PUBLIC ftenum_t get_dissector_table_selector_type(const char *name); -/* Get the base to use when displaying values of the selector for a - sub-dissector table, given the table's internal name */ -WS_DLL_PUBLIC int get_dissector_table_base(const char *name); +/* Get the param set for the sub-dissector table, + given the table's internal name */ +WS_DLL_PUBLIC int get_dissector_table_param(const char *name); /* Dump all dissector tables to the standard output (not the entries, just the information about the tables) */ |