diff src/musepack/libmpc.cxx @ 1079:d0d7b6dd45f0 trunk

[svn] - musepack: transition to plugin API v2
author nenolod
date Thu, 24 May 2007 16:30:56 -0700
parents b1128efde471
children 6d749f573b3b
line wrap: on
line diff
--- a/src/musepack/libmpc.cxx	Thu May 24 16:14:36 2007 -0700
+++ b/src/musepack/libmpc.cxx	Thu May 24 16:30:56 2007 -0700
@@ -13,7 +13,7 @@
 InputPlugin MpcPlugin = {
     NULL,           //File Handle               FILE* handle
     NULL,           //Filename                  char* filename
-    NULL,           //Name of Plugin            char* filename
+    "Musepack Audio Plugin",
     mpcOpenPlugin,  //Open Plugin               [CALLBACK]
     mpcAboutBox,    //Show About box            [CALLBACK]
     mpcConfigBox,   //Show Configure box        [CALLBACK]
@@ -42,12 +42,9 @@
     (gchar **)mpc_fmts
 };
 
-extern "C"
-InputPlugin* get_iplugin_info()
-{
-    MpcPlugin.description = g_strdup_printf("Musepack Audio Plugin");
-    return &MpcPlugin;
-}
+InputPlugin *mpc_iplist[] = { &MpcPlugin, NULL };
+
+DECLARE_PLUGIN(musepack, NULL, NULL, mpc_iplist, NULL, NULL, NULL, NULL);
 
 static PluginConfig pluginConfig = {0};
 static Widgets      widgets      = {0};