diff options
author | Guy Harris <guy@alum.mit.edu> | 2014-06-20 09:43:28 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2014-06-20 16:43:56 +0000 |
commit | ce3d2ff3ded3eccb9d64c6cb46c64ad8f8a837b9 (patch) | |
tree | 8a4ddc4ec1607716254ada75c607094da614f131 /epan/packet.h | |
parent | 4df6b5178496422ddfc3b9256af763b847d1a2c7 (diff) |
Rename dissector_add_handle() to dissector_add_for_decode_as().
Hopefully that name makes it clear what the routiner's purpose is, and
will encourage people to use it rather than using dissector_add_uint()
with a bogus integer value.
Change-Id: Ic5be456d0ad40b176aab01712ab7b13aed5de2a8
Reviewed-on: https://code.wireshark.org/review/2483
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'epan/packet.h')
-rw-r--r-- | epan/packet.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/epan/packet.h b/epan/packet.h index c96bd4fab6..dc09bcb98b 100644 --- a/epan/packet.h +++ b/epan/packet.h @@ -318,8 +318,12 @@ WS_DLL_PUBLIC dissector_handle_t dissector_get_default_string_handle( const char *name, const gchar *string); /* Add a handle to the list of handles that *could* be used with this - table. That list is used by code in the UI. */ -WS_DLL_PUBLIC void dissector_add_handle(const char *name, dissector_handle_t handle); + table. That list is used by the "Decode As"/"-d" code in the UI. */ +WS_DLL_PUBLIC void dissector_add_for_decode_as(const char *name, + dissector_handle_t handle); + +/* DEPRECATED, do not use in new code, call dissector_add_for_decode_as directly! */ +#define dissector_add_handle dissector_add_for_decode_as /** Get the list of handles for a dissector table */ @@ -339,7 +343,7 @@ typedef GSList *heur_dissector_list_t; 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 */ + gchar *list_name; /* the list name this entry is in the list of */ gboolean enabled; } heur_dtbl_entry_t; |