Mercurial > audlegacy-plugins
changeset 1066:d1f8b0594f37 trunk
[svn] - convert scrobbler to plugin API v2
author | nenolod |
---|---|
date | Thu, 24 May 2007 12:12:49 -0700 |
parents | b3b02e58429f |
children | beba7968d2da |
files | ChangeLog src/scrobbler/plugin.c |
diffstat | 2 files changed, 13 insertions(+), 10 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Thu May 24 12:09:40 2007 -0700 +++ b/ChangeLog Thu May 24 12:12:49 2007 -0700 @@ -1,3 +1,11 @@ +2007-05-24 19:09:40 +0000 William Pitcock <nenolod@sacredspiral.co.uk> + revision [2296] + - convert madplug to plugin API v2 + + trunk/src/madplug/plugin.c | 46 +++++++++++++++++++++------------------------ + 1 file changed, 22 insertions(+), 24 deletions(-) + + 2007-05-24 19:02:58 +0000 William Pitcock <nenolod@sacredspiral.co.uk> revision [2294] - update wav plugin to plugin API v2
--- a/src/scrobbler/plugin.c Thu May 24 12:09:40 2007 -0700 +++ b/src/scrobbler/plugin.c Thu May 24 12:12:49 2007 -0700 @@ -54,11 +54,11 @@ static GMutex *hs_mutex, *xs_mutex; static GCond *hs_cond, *xs_cond; -static GeneralPlugin xmms_scrobbler = +static GeneralPlugin scrobbler_gp = { NULL, NULL, - NULL, + "Scrobbler Plugin", init, about_show, NULL, @@ -175,9 +175,6 @@ static void cleanup(void) { - g_free (xmms_scrobbler.description); - xmms_scrobbler.description = NULL; - prefswin_page_destroy(cfgdlg); if (!sc_going && !ge_going) @@ -322,8 +319,6 @@ return NULL; } -GeneralPlugin *get_gplugin_info(void) -{ - xmms_scrobbler.description = g_strdup_printf(_("Scrobbler Plugin")); - return &xmms_scrobbler; -} +GeneralPlugin *scrobbler_gplist[] = { &scrobbler_gp, NULL }; + +DECLARE_PLUGIN(scrobbler, NULL, NULL, NULL, NULL, NULL, scrobbler_gplist, NULL);