remove remnants of the old plugin api from dissectors and plugins
authorlroland <lroland@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 7 Mar 2005 21:40:29 +0000 (21:40 +0000)
committerlroland <lroland@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 7 Mar 2005 21:40:29 +0000 (21:40 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13656 f5534014-38df-0310-8fa8-9805f1628bb7

epan/dissectors/packet-pn-rt.c
plugins/mate/mate.h
plugins/mate/mate_plugin.c
plugins/stats_tree/stats_tree_plugin.c
plugins/xml/xml_plugin.c

index 551c736a50516876829ada128c2c3089d3bdcb9a..a71958b861005e30df3e094d38260ab7d5394704 100644 (file)
 #include "config.h"
 #endif
 
-/* we do not use this dissector as a plugin any longer... */
-#define __ETHEREAL_STATIC__
-
-#ifndef __ETHEREAL_STATIC__
-#include "plugins/plugin_api.h"
-#include "moduleinfo.h"
-#endif
-
-
 #ifdef HAVE_SYS_TYPES_H
 # include <sys/types.h>
 #endif
 #include <epan/strutil.h>
 #include <etypes.h>
 
-
-#ifndef __ETHEREAL_STATIC__
-#include "plugins/plugin_api_defs.h"
-
-G_MODULE_EXPORT const gchar version[] = VERSION;
-#endif
-
 void proto_reg_handoff_pn_rt(void);
 
 /* Define the pn-rt proto */
@@ -426,32 +410,3 @@ proto_reg_handoff_pn_rt(void)
   data_handle = find_dissector("data");
 }
 
-
-
-
-/* Start the functions we need for the plugin stuff */
-
-#ifndef __ETHEREAL_STATIC__
-
-G_MODULE_EXPORT void
-plugin_reg_handoff(void){
-  proto_reg_handoff_pn_rt();
-}
-
-G_MODULE_EXPORT void
-plugin_init(plugin_address_table_t *pat
-#ifndef PLUGINS_NEED_ADDRESS_TABLE
-_U_
-#endif
-){
-  /* initialise the table of pointers needed in Win32 DLLs */
-  plugin_address_table_init(pat);
-  /* register the new protocol, protocol fields, and subtrees */
-  if (proto_pn_rt == -1) { /* execute protocol initialization only once */
-    proto_register_pn_rt();
-  }
-}
-
-#endif /* __ETHEREAL_STATIC__ */
-
-/* End the functions we need for plugin stuff */
index 0a759addbd6e842559dd117f9a06ef1d19453e61..266d57b8901b65bbbfc4b6d20ab67515c01e25ed 100644 (file)
@@ -33,7 +33,6 @@
 #endif
 
 #ifndef ENABLE_STATIC
-#include "plugins/plugin_api.h"
 #include "moduleinfo.h"
 #include <gmodule.h>
 #else 
@@ -54,8 +53,6 @@
 #include <epan/report_err.h>
 
 #include "mate_util.h"
-#include "plugins/plugin_api_defs.h"
-
 
 /* defaults */
 
index 963e9b75ee07ccce57cdb586f04fb8f4fb8bd2e7..4111c76c293574889811c989e772c3bb8e966cc4 100644 (file)
 #include "config.h"
 #endif
 
-#include "plugins/plugin_api.h"
+#include <glib.h>
+
+#ifndef ENABLE_STATIC
 #include "moduleinfo.h"
 #include <gmodule.h>
-#include "plugins/plugin_api_defs.h"
-
+#endif
 
 /* these two are in packet-mate.c */
 void proto_register_mate(void);
index 3621df24b2a91262e408fdcef002a35457f3ddef..dccb029a50050ee3cca4683ed066ad3a414bd02f 100644 (file)
@@ -28,9 +28,8 @@
 #include "config.h"
 #endif
 
-#include "plugins/plugin_api.h"
 #include <gmodule.h>
-#include "plugins/plugin_api_defs.h"
+
 #include <epan/stats_tree.h>
 
 extern void register_pinfo_stat_trees(void);
index 6c49f1d06646b24561289eb68847ab9eca487f2b..9727e027690e1d5d941d814bc7b37bfc725290ea 100644 (file)
 #include "config.h"
 #endif
 
-#include "plugins/plugin_api.h"
+#include <glib.h>
+
+#ifndef ENABLE_STATIC
 #include "moduleinfo.h"
 #include <gmodule.h>
-#include "plugins/plugin_api_defs.h"
-
+#endif
 
 /* these two are in packet-mate.c */
 void proto_register_xml(void);