changeset 1067:beba7968d2da trunk

[svn] - update OSS plugin to plugin API v2
author nenolod
date Thu, 24 May 2007 12:15:22 -0700
parents d1f8b0594f37
children 7a656e49c935
files ChangeLog src/OSS/OSS.c
diffstat 2 files changed, 11 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Thu May 24 12:12:49 2007 -0700
+++ b/ChangeLog	Thu May 24 12:15:22 2007 -0700
@@ -1,3 +1,11 @@
+2007-05-24 19:12:49 +0000  William Pitcock <nenolod@sacredspiral.co.uk>
+  revision [2298]
+  - convert scrobbler to plugin API v2
+  
+  trunk/src/scrobbler/plugin.c |   15 +++++----------
+  1 file changed, 5 insertions(+), 10 deletions(-)
+
+
 2007-05-24 19:09:40 +0000  William Pitcock <nenolod@sacredspiral.co.uk>
   revision [2296]
   - convert madplug to plugin API v2
--- a/src/OSS/OSS.c	Thu May 24 12:12:49 2007 -0700
+++ b/src/OSS/OSS.c	Thu May 24 12:15:22 2007 -0700
@@ -28,7 +28,7 @@
 OutputPlugin oss_op = {
     NULL,
     NULL,
-    NULL,                       /* Description */
+    "OSS Output Plugin",                       /* Description */
     oss_init,
     oss_cleanup,
     oss_about,
@@ -47,13 +47,9 @@
     oss_tell
 };
 
-OutputPlugin *
-get_oplugin_info(void)
-{
-    oss_op.description = g_strdup_printf(_("OSS Output Plugin"));
-    return &oss_op;
-}
+OutputPlugin *oss_oplist[] = { &oss_op, NULL };
 
+DECLARE_PLUGIN(OSS, NULL, NULL, NULL, oss_oplist, NULL, NULL, NULL);
 
 void oss_cleanup(void)
 {