diff options
author | Guy Harris <guy@alum.mit.edu> | 2005-03-07 02:44:41 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2005-03-07 02:44:41 +0000 |
commit | 802859d3fdec48deb783cf69bfd9ebde1a29cfbc (patch) | |
tree | dcd76ab989f1e0ed41345f4fdf7564ad33622c83 /ethereal_gen.py | |
parent | ab32b090b72047d3ed37852f5b40a5de386a433a (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.
svn path=/trunk/; revision=13644
Diffstat (limited to 'ethereal_gen.py')
-rw-r--r-- | ethereal_gen.py | 12 |
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 """ |