> On Tue, 16 Jan 2001 12:28:18 +0800
> This is something that's very confusing. Ethereal used to have only
> one type of plugin, which was configurable via Tools|Plugins. Now
> plugins can register themselves to the core ethereal routines in
> 2 way (maybe more... can someone clarify this for me?). Both
> the gryphon and the MGCP plugins register themselves with the
> core ethereal routines in the non-traditional way.
Non-traditional for plugins, but it's the standard way for non-plugin
dissectors; i.e., new-style plugins (and all the plugins that come with
Ethereal are new-style) register themselves in almost exactly the same
way non-plugin dissectors do - the only difference is that the initial
registration routine is called "plugin_init()" rather than
"proto_register_XXX()" (for some value of "XXX") and the handoff
registration routine is called "plugin_reg_handoff()" rather than
"proto_reg_handoff_XXX()" - "plugin_init()" does, for a new-style
plugin, what "proto_register_XXX()" would do if the dissector weren't a
plugin, and "plugin_reg_handoff()" does what "proto_reg_handoff_XXX()"
would do if the dissector weren't a plugin.