changeset 1099:6e34e226676a trunk

[svn] - sun: convert to plugin API v2
author nenolod
date Thu, 24 May 2007 23:34:49 -0700
parents 334afe46961c
children e363a0fa8ea0
files ChangeLog src/sun/sun.c
diffstat 2 files changed, 11 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Thu May 24 23:33:06 2007 -0700
+++ b/ChangeLog	Thu May 24 23:34:49 2007 -0700
@@ -1,3 +1,11 @@
+2007-05-25 06:33:06 +0000  William Pitcock <nenolod@sacredspiral.co.uk>
+  revision [2362]
+  - cdaudio-ng (aka Zither's CD Audio Plugin): convert to plugin API v2
+  
+  trunk/src/cdaudio-ng/cdaudio-ng.c |   10 +++-------
+  1 file changed, 3 insertions(+), 7 deletions(-)
+
+
 2007-05-25 06:30:47 +0000  William Pitcock <nenolod@sacredspiral.co.uk>
   revision [2360]
   - amidi-plug: convert to plugin API v2
--- a/src/sun/sun.c	Thu May 24 23:33:06 2007 -0700
+++ b/src/sun/sun.c	Thu May 24 23:34:49 2007 -0700
@@ -31,7 +31,7 @@
 {
 	NULL,
 	NULL,
-	NULL,			/* Description */
+	"BSD/Sun Output Plugin",	/* Description */
 	sun_init,
 	sun_cleanup,
 	sun_about,
@@ -50,13 +50,9 @@
 	NULL
 };
 
+OutputPlugin *sun_oplist[] = { &sun_op, NULL };
 
-OutputPlugin * get_oplugin_info(void)
-{
-	sun_op.description = g_strdup_printf(_("BSD Sun Driver %s"),
-					     SUN_VERSION);
-	return (&sun_op);
-}
+DECLARE_PLUGIN(sun, NULL, NULL, NULL, sun_oplist, NULL, NULL, NULL);
 
 void sun_init(void)
 {