Mercurial > audlegacy-plugins
changeset 1079:d0d7b6dd45f0 trunk
[svn] - musepack: transition to plugin API v2
author | nenolod |
---|---|
date | Thu, 24 May 2007 16:30:56 -0700 |
parents | 094fa3026e3d |
children | b51246bc3fb3 |
files | ChangeLog src/musepack/libmpc.cxx |
diffstat | 2 files changed, 12 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Thu May 24 16:14:36 2007 -0700 +++ b/ChangeLog Thu May 24 16:30:56 2007 -0700 @@ -1,3 +1,11 @@ +2007-05-24 23:14:36 +0000 William Pitcock <nenolod@sacredspiral.co.uk> + revision [2322] + - vorbis: transition to plugin API v2 + + trunk/src/vorbis/vorbis.c | 13 +++++-------- + 1 file changed, 5 insertions(+), 8 deletions(-) + + 2007-05-24 23:12:47 +0000 William Pitcock <nenolod@sacredspiral.co.uk> revision [2320] - esd: transition to plugin API v2
--- 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};