aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/agentx/packet-agentx.c
diff options
context:
space:
mode:
authorLars Roland <Lars.Roland@gmx.net>2005-03-05 06:28:10 +0000
committerLars Roland <Lars.Roland@gmx.net>2005-03-05 06:28:10 +0000
commit00273300e721999ac67a4ce66dab80fed6a1314f (patch)
treeac2c8b87fdd4dc989c3ef1d3b646f7700ba7626c /plugins/agentx/packet-agentx.c
parent1a7b3ec1439203e3bea3381dfb31b4357758b4c3 (diff)
Preparations for dropping the old plugin api.
Introduce a new init routine for plugins, which does not take the plugin api table as an argument and allows etheral to distinguish between plugins using the old and the new api. Update README.plugins accordingly Change all g_warnings() in epan/plugins.c to report_failue(). On windows we do not have a log console open while loading the plugins, because a log console cannot be opened before the prefs have been read. Thus g_warnings() does not work for reporting problems with plugins. svn path=/trunk/; revision=13596
Diffstat (limited to 'plugins/agentx/packet-agentx.c')
-rw-r--r--plugins/agentx/packet-agentx.c12
1 files changed, 2 insertions, 10 deletions
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();