diff options
author | Guy Harris <guy@alum.mit.edu> | 2000-04-04 21:46:29 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2000-04-04 21:46:29 +0000 |
commit | 22ec050ed83db2827855dcadeccafbd447b5842e (patch) | |
tree | 9825914f1598f51a8134813c31a2ab6104921081 | |
parent | 7fba3d94c2db0eca144be5c0381bf84d58def636 (diff) | |
download | wireshark-22ec050ed83db2827855dcadeccafbd447b5842e.tar.gz wireshark-22ec050ed83db2827855dcadeccafbd447b5842e.tar.bz2 wireshark-22ec050ed83db2827855dcadeccafbd447b5842e.zip |
Add "dissector_add()" to the list of routines exported to plugins via
the Big Function Pointer Table.
svn path=/trunk/; revision=1797
-rw-r--r-- | plugins/plugin_api.c | 3 | ||||
-rw-r--r-- | plugins/plugin_api.h | 4 | ||||
-rw-r--r-- | plugins/plugin_table.h | 6 |
3 files changed, 10 insertions, 3 deletions
diff --git a/plugins/plugin_api.c b/plugins/plugin_api.c index 4da934b3af..c5831e8ab8 100644 --- a/plugins/plugin_api.c +++ b/plugins/plugin_api.c @@ -1,7 +1,7 @@ /* plugin_api.c * Routines for Ethereal plugins. * - * $Id: plugin_api.c,v 1.5 2000/03/15 19:09:16 guy Exp $ + * $Id: plugin_api.c,v 1.6 2000/04/04 21:46:29 guy Exp $ * * Ethereal - Network traffic analyzer * Copyright 2000 by Gilbert Ramirez <gram@xiexie.org> @@ -47,6 +47,7 @@ plugin_address_table_init(plugin_address_table_t *pat) p_proto_register_protocol = pat->p_proto_register_protocol; p_proto_register_field_array = pat->p_proto_register_field_array; p_proto_register_subtree_array = pat->p_proto_register_subtree_array; + p_dissector_add = pat->p_dissector_add; p_proto_item_add_subtree = pat->p_proto_item_add_subtree; p_proto_tree_add_item = pat->p_proto_tree_add_item; p_proto_tree_add_item_hidden = pat->p_proto_tree_add_item_hidden; diff --git a/plugins/plugin_api.h b/plugins/plugin_api.h index 13082a02fd..50ca1749b9 100644 --- a/plugins/plugin_api.h +++ b/plugins/plugin_api.h @@ -1,7 +1,7 @@ /* plugin_api.h * Routines for Ethereal plugins. * - * $Id: plugin_api.h,v 1.3 2000/03/15 19:09:16 guy Exp $ + * $Id: plugin_api.h,v 1.4 2000/04/04 21:46:29 guy Exp $ * * Ethereal - Network traffic analyzer * Copyright 2000 by Gilbert Ramirez <gram@xiexie.org> @@ -48,6 +48,8 @@ #define proto_register_field_array (*p_proto_register_field_array) #define proto_register_subtree_array (*p_proto_register_subtree_array) +#define dissector_add (*p_dissector_add) + #define proto_item_add_subtree (*p_proto_item_add_subtree) #define proto_tree_add_item (*p_proto_tree_add_item) #define proto_tree_add_item_hidden (*p_proto_tree_add_item_hidden) diff --git a/plugins/plugin_table.h b/plugins/plugin_table.h index 533560d5d7..ac8d3d5cf9 100644 --- a/plugins/plugin_table.h +++ b/plugins/plugin_table.h @@ -1,7 +1,7 @@ /* plugin_table.h * Table of exported addresses for Ethereal plugins. * - * $Id: plugin_table.h,v 1.1 2000/03/15 19:09:52 guy Exp $ + * $Id: plugin_table.h,v 1.2 2000/04/04 21:46:29 guy Exp $ * * Ethereal - Network traffic analyzer * Copyright 2000 by Gilbert Ramirez <gram@xiexie.org> @@ -43,6 +43,8 @@ typedef int (*addr_proto_register_protocol)(char*, char*); typedef void (*addr_proto_register_field_array)(int, hf_register_info*, int); typedef void (*addr_proto_register_subtree_array)(int**, int); +typedef void (*addr_dissector_add)(char *, guint32, dissector_t); + typedef proto_tree* (*addr_proto_item_add_subtree)(proto_item*, gint); typedef proto_item* (*addr_proto_tree_add_item)(proto_tree*, int, gint, gint, ...); typedef proto_item* (*addr_proto_tree_add_item_hidden)(proto_tree*, int, gint, gint, ...); @@ -75,6 +77,8 @@ typedef struct { addr_proto_register_field_array p_proto_register_field_array; addr_proto_register_subtree_array p_proto_register_subtree_array; + addr_dissector_add p_dissector_add; + addr_proto_item_add_subtree p_proto_item_add_subtree; addr_proto_tree_add_item p_proto_tree_add_item; addr_proto_tree_add_item_hidden p_proto_tree_add_item_hidden; |