Add "dissector_add()" to the list of routines exported to plugins via
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 4 Apr 2000 21:46:29 +0000 (21:46 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 4 Apr 2000 21:46:29 +0000 (21:46 +0000)
the Big Function Pointer Table.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@1797 f5534014-38df-0310-8fa8-9805f1628bb7

plugins/plugin_api.c
plugins/plugin_api.h
plugins/plugin_table.h

index 4da934b3affdf8955ce034cd8a41a235ce6ad0ed..c5831e8ab8a6a4e418475f5c769cf85830ad5719 100644 (file)
@@ -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;
index 13082a02fd2169890714b425bea3c70d20c6fc49..50ca1749b9bc3872efd468a189eaa01b454d6105 100644 (file)
@@ -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)
index 533560d5d78c66f08c712c3f842d584ba925d36a..ac8d3d5cf9de3d67ff3c10dc83ce47b8411bc42b 100644 (file)
@@ -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;