aboutsummaryrefslogtreecommitdiffstats
path: root/epan/packet.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2003-09-09 18:09:42 +0000
committerGuy Harris <guy@alum.mit.edu>2003-09-09 18:09:42 +0000
commit92fbca527d7fcad9b4631c3aacd5ba114ba3132a (patch)
tree861c2c4a7eb17bc3314d5776136325a57faba1b2 /epan/packet.h
parent24bf25d65277e0196079be4464ef435bedce9ebf (diff)
Add "dissector_get_string_handle()" for string dissector tables, similar
to "dissector_get_port_handle()" for uint dissector tables. svn path=/trunk/; revision=8434
Diffstat (limited to 'epan/packet.h')
-rw-r--r--epan/packet.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/epan/packet.h b/epan/packet.h
index 9c5478821b..0ccc23a655 100644
--- a/epan/packet.h
+++ b/epan/packet.h
@@ -1,7 +1,7 @@
/* packet.h
* Definitions for packet disassembly structures and routines
*
- * $Id: packet.h,v 1.70 2003/09/07 00:47:56 guy Exp $
+ * $Id: packet.h,v 1.71 2003/09/09 18:09:42 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -205,6 +205,11 @@ extern void dissector_reset_string(const char *name, const gchar *pattern);
extern gboolean dissector_try_string(dissector_table_t sub_dissectors,
const gchar *string, tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree);
+/* Look for a given value in a given string dissector table and, if found,
+ return the dissector handle for that value. */
+extern dissector_handle_t dissector_get_string_handle(
+ dissector_table_t sub_dissectors, 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. */
extern void dissector_add_handle(const char *name, dissector_handle_t handle);