aboutsummaryrefslogtreecommitdiffstats
path: root/epan/packet.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2003-05-23 22:09:36 +0000
committerGuy Harris <guy@alum.mit.edu>2003-05-23 22:09:36 +0000
commitf94c7971a512de7c2b08f65d5d6e05a706af13f9 (patch)
tree368c5a88751ed8dc8db15e6667acc57fe5b988f2 /epan/packet.c
parent8a1947f01d2df0d1d67eedbddbd4eb998e847a86 (diff)
Add an API to get the dissector name from a dissector handle.
svn path=/trunk/; revision=7726
Diffstat (limited to 'epan/packet.c')
-rw-r--r--epan/packet.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/epan/packet.c b/epan/packet.c
index 29e3cabe69..fed1526da4 100644
--- a/epan/packet.c
+++ b/epan/packet.c
@@ -1,7 +1,7 @@
/* packet.c
* Routines for packet disassembly
*
- * $Id: packet.c,v 1.91 2003/04/23 10:20:27 sahlberg Exp $
+ * $Id: packet.c,v 1.92 2003/05/23 22:09:36 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -1116,11 +1116,18 @@ dissector_handle_get_short_name(dissector_handle_t handle)
return proto_get_protocol_short_name(handle->proto_index);
}
+/* Get the dissector name for a dissector handle. */
+const char *
+dissector_handle_get_dissector_name(dissector_handle_t handle)
+{
+ return handle->name;
+}
+
/* Get the index of the protocol for a dissector handle. */
int
dissector_handle_get_protocol_index(dissector_handle_t handle)
{
- return handle->proto_index;
+ return handle->proto_index;
}
/* Find a registered dissector by name. */