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 /plugins/pcli/packet-pcli.c | |
parent | ab32b090b72047d3ed37852f5b40a5de386a433a (diff) | |
download | wireshark-802859d3fdec48deb783cf69bfd9ebde1a29cfbc.tar.gz |
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 'plugins/pcli/packet-pcli.c')
-rw-r--r-- | plugins/pcli/packet-pcli.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/pcli/packet-pcli.c b/plugins/pcli/packet-pcli.c index 916e8a033a..aac945dc02 100644 --- a/plugins/pcli/packet-pcli.c +++ b/plugins/pcli/packet-pcli.c @@ -175,12 +175,7 @@ proto_reg_handoff_pcli(void) { #ifndef ENABLE_STATIC G_MODULE_EXPORT void -plugin_reg_handoff(void){ - proto_reg_handoff_pcli(); -} - -G_MODULE_EXPORT void -new_plugin_init(void) +plugin_register(void) { /* register the new protocol, protocol fields, and subtrees */ if (proto_pcli == -1) { /* execute protocol initialization only once */ @@ -188,6 +183,11 @@ new_plugin_init(void) } } +G_MODULE_EXPORT void +plugin_reg_handoff(void){ + proto_reg_handoff_pcli(); +} + #endif /* End the functions we need for plugin stuff */ |