diff options
author | Anders Broman <anders.broman@ericsson.com> | 2011-09-05 13:04:23 +0000 |
---|---|---|
committer | Anders Broman <anders.broman@ericsson.com> | 2011-09-05 13:04:23 +0000 |
commit | 377bfd19a0e9c1a4efda47ab177b0a513f236efb (patch) | |
tree | d28cbd961c583c70a5c2d24e3ccee7fc19605965 /epan/packet.h | |
parent | 8947dcb6559c9947fc07c3771783ccc1a4839e80 (diff) | |
download | wireshark-377bfd19a0e9c1a4efda47ab177b0a513f236efb.tar.gz wireshark-377bfd19a0e9c1a4efda47ab177b0a513f236efb.tar.bz2 wireshark-377bfd19a0e9c1a4efda47ab177b0a513f236efb.zip |
List heuristic tables in Internals->Disscetor tables menu.
svn path=/trunk/; revision=38881
Diffstat (limited to 'epan/packet.h')
-rw-r--r-- | epan/packet.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/epan/packet.h b/epan/packet.h index c65773187a..7222994428 100644 --- a/epan/packet.h +++ b/epan/packet.h @@ -132,6 +132,9 @@ typedef void (*DATFunc_handle) (const gchar *table_name, gpointer value, typedef void (*DATFunc_table) (const gchar *table_name, const gchar *ui_name, gpointer user_data); +typedef void (*DATFunc_heur_table) (const gchar *table_name,gpointer table, + gpointer user_data); + /* Opaque structure - provides type checking but no access to components */ typedef struct dtbl_entry dtbl_entry_t; @@ -266,6 +269,12 @@ extern void dissector_add_handle(const char *name, dissector_handle_t handle); by another dissector. */ typedef GSList *heur_dissector_list_t; + +typedef struct { + heur_dissector_t dissector; + protocol_t *protocol; +} heur_dtbl_entry_t; + /** A protocol uses this function to register a heuristic sub-dissector list. * Call this in the parent dissectors proto_register function. * @@ -275,6 +284,9 @@ typedef GSList *heur_dissector_list_t; extern void register_heur_dissector_list(const char *name, heur_dissector_list_t *list); +extern void dissector_all_heur_tables_foreach_table (DATFunc_heur_table func, + gpointer user_data); + /** Try all the dissectors in a given heuristic dissector list. This is done, * until we find one that recognizes the protocol. * Call this while the parent dissector running. |