aboutsummaryrefslogtreecommitdiffstats
path: root/epan/packet.c
diff options
context:
space:
mode:
authorstig <stig@f5534014-38df-0310-8fa8-9805f1628bb7>2011-03-31 12:14:59 +0000
committerstig <stig@f5534014-38df-0310-8fa8-9805f1628bb7>2011-03-31 12:14:59 +0000
commit0caab510c26007ebb4764fa9e33ccfe66336cb1c (patch)
tree3512d004c9179d8a42a8927e09dde8ba34387a6a /epan/packet.c
parent3e5bca541ca68667a1d6cf170caacdd0a0b840f9 (diff)
Added dissector_handle_get_long_name().
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@36412 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/packet.c')
-rw-r--r--epan/packet.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/epan/packet.c b/epan/packet.c
index 94a13e5054..a6ce1835a5 100644
--- a/epan/packet.c
+++ b/epan/packet.c
@@ -1682,6 +1682,17 @@ register_heur_dissector_list(const char *name, heur_dissector_list_t *sub_dissec
*/
static GHashTable *registered_dissectors = NULL;
+/* Get the long name of the protocol for a dissector handle, if it has
+ a protocol. */
+const char *
+dissector_handle_get_long_name(const dissector_handle_t handle)
+{
+ if (handle == NULL || handle->protocol == NULL) {
+ return NULL;
+ }
+ return proto_get_protocol_long_name(handle->protocol);
+}
+
/* Get the short name of the protocol for a dissector handle, if it has
a protocol. */
const char *