aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/gryphon
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2005-03-07 02:44:41 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2005-03-07 02:44:41 +0000
commit441119bf420bf0f70ec43028142ffb9e73e2f415 (patch)
treedcd76ab989f1e0ed41345f4fdf7564ad33622c83 /plugins/gryphon
parenta2795ba504a8f80ce4a6b757cea92c4098157f7f (diff)
Call the "new-style init" routine for plugins a "register" routine, as
it serves the same purpose as the register routine in a built-in dissector, and don't require all dissectors to have one, as they might just be taps. Get rid of the stats tree's init routine, as it's just a tap, and as it doesn't do anything. Update the idl2eth Python script to generate plugins with register routines. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13644 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'plugins/gryphon')
-rw-r--r--plugins/gryphon/packet-gryphon.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/gryphon/packet-gryphon.c b/plugins/gryphon/packet-gryphon.c
index ea6196fe7f..eb84399a05 100644
--- a/plugins/gryphon/packet-gryphon.c
+++ b/plugins/gryphon/packet-gryphon.c
@@ -2293,12 +2293,7 @@ proto_reg_handoff_gryphon(void)
#ifndef ENABLE_STATIC
G_MODULE_EXPORT void
-plugin_reg_handoff(void){
- proto_reg_handoff_gryphon();
-}
-
-G_MODULE_EXPORT void
-new_plugin_init(void)
+plugin_register(void)
{
/* register the new protocol, protocol fields, and subtrees */
if (proto_gryphon == -1) { /* execute protocol initialization only once */
@@ -2306,6 +2301,11 @@ new_plugin_init(void)
}
}
+G_MODULE_EXPORT void
+plugin_reg_handoff(void){
+ proto_reg_handoff_gryphon();
+}
+
#endif
/* End the functions we need for plugin stuff */