Preparations for dropping the old plugin api.
[obnox/wireshark/wip.git] / plugins / agentx / packet-agentx.c
index c0efecac2861311f73e1bcf85794bc26c192c656..26f19ee6dccf3e926b5339cbcf62b37fd7e4a590 100644 (file)
@@ -29,7 +29,6 @@
 #include "config.h"
 #endif
 
-#include "plugins/plugin_api.h"
 #include "moduleinfo.h"
 
 #include <stdio.h>
@@ -45,8 +44,6 @@
 
 #include <epan/dissectors/packet-tcp.h>
 
-#include "plugins/plugin_api_defs.h"
-
 static guint global_agentx_tcp_port = 705;
 static guint agentx_tcp_port = 705;
 
@@ -1173,13 +1170,8 @@ plugin_reg_handoff(void){
 }
 
 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);
+new_plugin_init(void)
+{
   /* register the new protocol, protocol fields, and subtrees */
   if (proto_agentx == -1) { /* execute protocol initialization only once */
     proto_register_agentx();