diff options
author | Guy Harris <guy@alum.mit.edu> | 2002-11-15 03:10:36 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2002-11-15 03:10:36 +0000 |
commit | 1c81a6168b24a8146ad9dcd953d84960f3bb9469 (patch) | |
tree | f4e6cdbf3d1dc8b4e86136da30438f6ee611b1a7 /epan/packet.h | |
parent | a20ae99262518404f2019c4fdc6d2beb44a42d16 (diff) |
From Chris Waters: export "find_dissector_table()" and add
"dissector_handle_get_protocol_index()".
svn path=/trunk/; revision=6633
Diffstat (limited to 'epan/packet.h')
-rw-r--r-- | epan/packet.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/epan/packet.h b/epan/packet.h index 2cbd8a01a9..4e0b7de7b7 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.64 2002/11/06 21:49:32 guy Exp $ + * $Id: packet.h,v 1.65 2002/11/15 03:10:36 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -134,6 +134,9 @@ extern void dissector_table_foreach_handle(char *name, DATFunc_handle func, extern dissector_table_t register_dissector_table(const char *name, char *ui_name, ftenum_t type, int base); +/* Find a dissector table by table name. */ +dissector_table_t find_dissector_table(const char *name); + /* Get the UI name for a sub-dissector table, given its internal name */ extern char *get_dissector_table_ui_name(const char *name); @@ -210,6 +213,9 @@ extern void new_register_dissector(const char *name, new_dissector_t dissector, /* Get the short name of the protocol for a dissector handle. */ extern char *dissector_handle_get_short_name(dissector_handle_t handle); +/* Get the index of the protocol for a dissector handle. */ +extern int dissector_handle_get_protocol_index(dissector_handle_t handle); + /* Find a dissector by name. */ extern dissector_handle_t find_dissector(const char *name); |