aboutsummaryrefslogtreecommitdiffstats
path: root/ethereal_gen.py
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 /ethereal_gen.py
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 'ethereal_gen.py')
-rw-r--r--ethereal_gen.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/ethereal_gen.py b/ethereal_gen.py
index 80399c824a..9574872d12 100644
--- a/ethereal_gen.py
+++ b/ethereal_gen.py
@@ -1713,12 +1713,7 @@ static guint32 boundary = GIOP_HEADER_SIZE; /* initial value */
#ifndef __ETHEREAL_STATIC__
G_MODULE_EXPORT void
-plugin_reg_handoff(void){
- proto_register_handoff_giop_@dissector_name@();
-}
-
-G_MODULE_EXPORT void
-plugin_init(plugin_address_table_t *pat
+plugin_register(plugin_address_table_t *pat
#ifndef PLUGINS_NEED_ADDRESS_TABLE
_U_
#endif
@@ -1730,6 +1725,11 @@ _U_
}
}
+G_MODULE_EXPORT void
+plugin_reg_handoff(void){
+ proto_register_handoff_giop_@dissector_name@();
+}
+
#endif
"""