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/docsis/packet-docsis.c | |
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 'plugins/docsis/packet-docsis.c')
-rw-r--r-- | plugins/docsis/packet-docsis.c | 66 |
1 files changed, 33 insertions, 33 deletions
diff --git a/plugins/docsis/packet-docsis.c b/plugins/docsis/packet-docsis.c index 0b60707e54..be3eddbd07 100644 --- a/plugins/docsis/packet-docsis.c +++ b/plugins/docsis/packet-docsis.c @@ -771,39 +771,7 @@ proto_reg_handoff_docsis (void) #ifndef ENABLE_STATIC G_MODULE_EXPORT void -plugin_reg_handoff (void) -{ - proto_reg_handoff_docsis (); - proto_reg_handoff_docsis_bpkmattr (); - proto_reg_handoff_docsis_dsarsp (); - proto_reg_handoff_docsis_mgmt (); - proto_reg_handoff_docsis_rngreq (); - proto_reg_handoff_docsis_rngrsp (); - proto_reg_handoff_docsis_bpkmreq (); - proto_reg_handoff_docsis_dscack (); - proto_reg_handoff_docsis_map (); - proto_reg_handoff_docsis_tlv (); - proto_reg_handoff_docsis_bpkmrsp (); - proto_reg_handoff_docsis_dscreq (); - proto_reg_handoff_docsis_regack (); - proto_reg_handoff_docsis_uccreq (); - proto_reg_handoff_docsis_dscrsp (); - proto_reg_handoff_docsis_regreq (); - proto_reg_handoff_docsis_uccrsp (); - proto_reg_handoff_docsis_dsaack (); - proto_reg_handoff_docsis_dsdreq (); - proto_reg_handoff_docsis_regrsp (); - proto_reg_handoff_docsis_ucd (); - proto_reg_handoff_docsis_type29ucd (); - proto_reg_handoff_docsis_dsareq (); - proto_reg_handoff_docsis_dsdrsp (); - proto_reg_handoff_docsis_vsif (); - proto_reg_handoff_docsis_intrngreq (); - -} - -G_MODULE_EXPORT void -new_plugin_init (void) +plugin_register (void) { /* register the new protocol, protocol fields, and subtrees */ if (proto_docsis == -1) @@ -838,4 +806,36 @@ new_plugin_init (void) } } +G_MODULE_EXPORT void +plugin_reg_handoff (void) +{ + proto_reg_handoff_docsis (); + proto_reg_handoff_docsis_bpkmattr (); + proto_reg_handoff_docsis_dsarsp (); + proto_reg_handoff_docsis_mgmt (); + proto_reg_handoff_docsis_rngreq (); + proto_reg_handoff_docsis_rngrsp (); + proto_reg_handoff_docsis_bpkmreq (); + proto_reg_handoff_docsis_dscack (); + proto_reg_handoff_docsis_map (); + proto_reg_handoff_docsis_tlv (); + proto_reg_handoff_docsis_bpkmrsp (); + proto_reg_handoff_docsis_dscreq (); + proto_reg_handoff_docsis_regack (); + proto_reg_handoff_docsis_uccreq (); + proto_reg_handoff_docsis_dscrsp (); + proto_reg_handoff_docsis_regreq (); + proto_reg_handoff_docsis_uccrsp (); + proto_reg_handoff_docsis_dsaack (); + proto_reg_handoff_docsis_dsdreq (); + proto_reg_handoff_docsis_regrsp (); + proto_reg_handoff_docsis_ucd (); + proto_reg_handoff_docsis_type29ucd (); + proto_reg_handoff_docsis_dsareq (); + proto_reg_handoff_docsis_dsdrsp (); + proto_reg_handoff_docsis_vsif (); + proto_reg_handoff_docsis_intrngreq (); + +} + #endif |