Call the "new-style init" routine for plugins a "register" routine, as
[obnox/wireshark/wip.git] / plugins / pcli / packet-pcli.c
index 916e8a033a5de2f94396bc49308ba97321ea1278..aac945dc02b5b010c13d9926e717f9776bca423f 100644 (file)
@@ -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 */