aboutsummaryrefslogtreecommitdiffstats
path: root/epan/packet.h
diff options
context:
space:
mode:
authorMichael Mann <mmann78@netscape.net>2016-03-13 07:51:45 -0400
committerMichael Mann <mmann78@netscape.net>2016-03-17 00:05:17 +0000
commite37275bfdee7a0ea4745def144d4a0e5c62e282d (patch)
treee556a0170b2a35bd4bf975823de4205f7d30ba09 /epan/packet.h
parentb46fe7e95ae09c062ec066838f05b2c42a3b2726 (diff)
Associate dissector tables and heuristic subdissector lists with a protocol.
This will make it easier to determine protocol dependencies. Some LLC OUI dissector tables didn't have an associated protocol, so they were left without one (-1 used) Change-Id: I6339f16476510ef3f393d6fb5d8946419bfb4b7d Reviewed-on: https://code.wireshark.org/review/14446 Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan/packet.h')
-rw-r--r--epan/packet.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/packet.h b/epan/packet.h
index f1f0862d7a..1fb6453217 100644
--- a/epan/packet.h
+++ b/epan/packet.h
@@ -186,14 +186,14 @@ WS_DLL_PUBLIC void dissector_all_tables_foreach_table (DATFunc_table func,
* case-sensitive)
*/
WS_DLL_PUBLIC dissector_table_t register_dissector_table(const char *name,
- const char *ui_name, const ftenum_t type, const int param, dissector_table_allow_e allow_dup);
+ const char *ui_name, const int proto, const ftenum_t type, const int param, dissector_table_allow_e allow_dup);
/*
* Similar to register_dissector_table, but with a "custom" hash function
* to store subdissectors.
*/
WS_DLL_PUBLIC dissector_table_t register_custom_dissector_table(const char *name,
- const char *ui_name, GHashFunc hash_func, GEqualFunc key_equal_func, dissector_table_allow_e allow_dup);
+ const char *ui_name, const int proto, GHashFunc hash_func, GEqualFunc key_equal_func, dissector_table_allow_e allow_dup);
/** Deregister the dissector table by table name. */
void deregister_dissector_table(const char *name);
@@ -410,7 +410,7 @@ typedef struct heur_dtbl_entry {
*
* @param name the name of this protocol
*/
-WS_DLL_PUBLIC heur_dissector_list_t register_heur_dissector_list(const char *name);
+WS_DLL_PUBLIC heur_dissector_list_t register_heur_dissector_list(const char *name, const int proto);
typedef void (*DATFunc_heur) (const gchar *table_name,
struct heur_dtbl_entry *entry, gpointer user_data);