diff options
author | Guy Harris <guy@alum.mit.edu> | 2006-04-22 20:26:16 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2006-04-22 20:26:16 +0000 |
commit | 51996714412f966065f1d53504680035d9924c64 (patch) | |
tree | 8f213a0cf3c74ecdae8926dd76b6826363541a3a /plugins/rlm/packet-rlm.c | |
parent | ec5efe737034e83e668edcbc22a22148860cf449 (diff) |
Convert most other plugin dissectors to use the make-dissector-reg
scripts.
svn path=/trunk/; revision=17961
Diffstat (limited to 'plugins/rlm/packet-rlm.c')
-rw-r--r-- | plugins/rlm/packet-rlm.c | 37 |
1 files changed, 2 insertions, 35 deletions
diff --git a/plugins/rlm/packet-rlm.c b/plugins/rlm/packet-rlm.c index 10f5a2d7b6..e813b4c626 100644 --- a/plugins/rlm/packet-rlm.c +++ b/plugins/rlm/packet-rlm.c @@ -55,18 +55,9 @@ #include <stdlib.h> #include <string.h> -#include <gmodule.h> +#include <glib.h> #include <epan/packet.h> - /* Define version if we are not building ethereal statically */ - -#include "moduleinfo.h" - -#ifndef ENABLE_STATIC - G_MODULE_EXPORT const gchar version[] = VERSION; -#endif - - /* Initialize the protocol and registered fields */ static int proto_rlm = -1; @@ -182,7 +173,7 @@ dissect_rlm(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) */ void -plugin_reg_handoff_rlm(void) +proto_reg_handoff_rlm(void) { heur_dissector_add("udp", dissect_rlm, proto_rlm); heur_dissector_add("udp", dissect_udp_lapd, proto_get_id_by_filter_name("lapd")); @@ -234,27 +225,3 @@ proto_register_rlm(void) proto_register_field_array(proto_rlm, hf, array_length(hf)); proto_register_subtree_array(ett, array_length(ett)); } - -#ifndef ENABLE_STATIC - -G_MODULE_EXPORT void -plugin_register(void) -{ - /* register the new protocol, protocol fields, and subtrees */ - if (proto_rlm == -1) { /* execute protocol initialization only once */ - proto_register_rlm(); - } -} - - -/* If this dissector uses sub-dissector registration add a registration routine. - This format is required because a script is used to find these routines and - create the code that calls these routines. -*/ -G_MODULE_EXPORT void -plugin_reg_handoff(void) -{ - plugin_reg_handoff_rlm(); -} - -#endif |