Convert most other plugin dissectors to use the make-dissector-reg
[obnox/wireshark/wip.git] / plugins / pcli / packet-pcli.c
index aac945dc02b5b010c13d9926e717f9776bca423f..cb75364b6437c76500e0e0d2ce0781c026fe7885 100644 (file)
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
-#include "moduleinfo.h"
 
 #include <stdio.h>
 #include <stdlib.h>
-#include <gmodule.h>
 #include <ctype.h>
 #include <time.h>
 #include <string.h>
+
+#include <glib.h>
 #include <epan/packet.h>
 #include <epan/addr_resolv.h>
 #include <epan/prefs.h>
 #include <epan/strutil.h>
 
-/* Define version if we are not building ethereal statically */
-
-#ifndef ENABLE_STATIC
-G_MODULE_EXPORT const gchar version[] = VERSION;
-#endif
-
 /* Define udp_port for lawful intercept */
 
 #define UDP_PORT_PCLI 9000
@@ -169,26 +163,3 @@ proto_reg_handoff_pcli(void) {
   
   dissector_add("udp.port",global_udp_port_pcli,pcli_handle);
 }
-
-/* Start the functions we need for the plugin stuff */
-
-#ifndef ENABLE_STATIC
-
-G_MODULE_EXPORT void
-plugin_register(void)
-{
-  /* register the new protocol, protocol fields, and subtrees */
-  if (proto_pcli == -1) { /* execute protocol initialization only once */
-    proto_register_pcli();
-  }
-}
-
-G_MODULE_EXPORT void
-plugin_reg_handoff(void){
-  proto_reg_handoff_pcli();
-}
-
-#endif
-
-/* End the functions we need for plugin stuff */
-