aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/agentx
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/agentx')
-rw-r--r--plugins/agentx/Makefile.nmake7
-rw-r--r--plugins/agentx/packet-agentx.c12
2 files changed, 5 insertions, 14 deletions
diff --git a/plugins/agentx/Makefile.nmake b/plugins/agentx/Makefile.nmake
index 0076318000..6d4b31e8f8 100644
--- a/plugins/agentx/Makefile.nmake
+++ b/plugins/agentx/Makefile.nmake
@@ -11,12 +11,9 @@ CFLAGS=/DHAVE_CONFIG_H /I../.. /I../../wiretap $(GLIB_CFLAGS) \
LDFLAGS = /NOLOGO /INCREMENTAL:no /MACHINE:I386 $(LOCAL_LDFLAGS)
-!IFDEF LINK_PLUGINS_WITH_LIBETHEREAL
+!IFDEF ENABLE_LIBETHEREAL
LINK_PLUGIN_WITH=..\..\epan\libethereal.lib
CFLAGS=/DHAVE_WIN32_LIBETHEREAL_LIB /D_NEED_VAR_IMPORT_ $(CFLAGS)
-!ELSE
-LINK_PLUGIN_WITH=..\plugin_api.obj
-!ENDIF
OBJECTS=packet-agentx.obj
@@ -24,6 +21,8 @@ agentx.dll agentx.exp agentx.lib : $(OBJECTS) $(LINK_PLUGIN_WITH)
link -dll /out:agentx.dll $(LDFLAGS) $(OBJECTS) $(LINK_PLUGIN_WITH) \
$(GLIB_LIBS)
+!ENDIF
+
clean:
rm -f $(OBJECTS) agentx.dll agentx.exp agentx.lib *.pdb
diff --git a/plugins/agentx/packet-agentx.c b/plugins/agentx/packet-agentx.c
index c0efecac28..26f19ee6dc 100644
--- a/plugins/agentx/packet-agentx.c
+++ b/plugins/agentx/packet-agentx.c
@@ -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();