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/rudp/packet-rudp.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/rudp/packet-rudp.c')
-rw-r--r-- | plugins/rudp/packet-rudp.c | 29 |
1 files changed, 1 insertions, 28 deletions
diff --git a/plugins/rudp/packet-rudp.c b/plugins/rudp/packet-rudp.c index 1355d325d5..cb45972501 100644 --- a/plugins/rudp/packet-rudp.c +++ b/plugins/rudp/packet-rudp.c @@ -46,17 +46,9 @@ # include "config.h" #endif -#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 - static int proto_rudp = -1; static int hf_rudp_flags = -1; @@ -230,22 +222,3 @@ proto_reg_handoff_rudp(void) { dissector_add("udp.port", 7000, rudp_handle); } - -#ifndef ENABLE_STATIC - -G_MODULE_EXPORT void -plugin_register(void) -{ - /* register the new protocol, protocol fields, and subtrees */ - if (proto_rudp == -1) { /* execute protocol initialization only once */ - proto_register_rudp(); - } -} - -G_MODULE_EXPORT void -plugin_reg_handoff(void){ - proto_reg_handoff_rudp(); -} - -#endif - |