diff options
author | Michael Mann <mmann78@netscape.net> | 2015-07-11 17:33:26 -0400 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2015-07-12 03:14:38 +0000 |
commit | be7d295fbf06788c7fec948cf8755c218ad7c32d (patch) | |
tree | 6ae35deb03e777b000683b94b928b774a4cd27b4 /epan/packet.h | |
parent | 0caf0616ba53282cf4ef5587e13989a7aacc9588 (diff) | |
download | wireshark-be7d295fbf06788c7fec948cf8755c218ad7c32d.tar.gz |
Add "user presentable" and "unique string ids" to heuristic table entries.
This allows better presentation of heuristic dissectors to the end user.
Change-Id: I2ff3985ab914e83c2989880cc0c7b9904045b3f6
Reviewed-on: https://code.wireshark.org/review/9602
Petri-Dish: Michael Mann <mmann78@netscape.net>
Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan/packet.h')
-rw-r--r-- | epan/packet.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/epan/packet.h b/epan/packet.h index 318c69eb01..aac75334e5 100644 --- a/epan/packet.h +++ b/epan/packet.h @@ -374,6 +374,8 @@ typedef struct { heur_dissector_t dissector; protocol_t *protocol; /* this entry's protocol */ gchar *list_name; /* the list name this entry is in the list of */ + const gchar *display_name; /* the string used to present heuristic to user */ + const gchar *short_name; /* string used for "internal" use to uniquely identify heuristic */ gboolean enabled; } heur_dtbl_entry_t; @@ -451,10 +453,12 @@ WS_DLL_PUBLIC heur_dtbl_entry_t* find_heur_dissector_by_short_name(heur_dissecto * * @param name the name of the "parent" protocol, e.g. "tcp" * @param dissector the sub-dissector to be registered + * @param display_name the string used to present heuristic to user, e.g. "HTTP over TCP" + * @param short_name the string used for "internal" use to identify heuristic, e.g. "http_tcp" * @param proto the protocol id of the sub-dissector */ WS_DLL_PUBLIC void heur_dissector_add(const char *name, heur_dissector_t dissector, - const int proto); + const char *display_name, const char *short_name, const int proto); /** Remove a sub-dissector from a heuristic dissector list. * Call this in the prefs_reinit function of the sub-dissector. |