changeset 1098:334afe46961c trunk

[svn] - cdaudio-ng (aka Zither's CD Audio Plugin): convert to plugin API v2
author nenolod
date Thu, 24 May 2007 23:33:06 -0700
parents baaf67022119
children 6e34e226676a
files ChangeLog src/cdaudio-ng/cdaudio-ng.c
diffstat 2 files changed, 12 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Thu May 24 23:30:47 2007 -0700
+++ b/ChangeLog	Thu May 24 23:33:06 2007 -0700
@@ -1,3 +1,12 @@
+2007-05-25 06:30:47 +0000  William Pitcock <nenolod@sacredspiral.co.uk>
+  revision [2360]
+  - amidi-plug: convert to plugin API v2
+  
+  trunk/src/amidi-plug/amidi-plug.c |    8 ++------
+  trunk/src/amidi-plug/amidi-plug.h |    2 +-
+  2 files changed, 3 insertions(+), 7 deletions(-)
+
+
 2007-05-25 06:25:59 +0000  William Pitcock <nenolod@sacredspiral.co.uk>
   revision [2358]
   - adplug: convert to plugin API v2
--- a/src/cdaudio-ng/cdaudio-ng.c	Thu May 24 23:30:47 2007 -0700
+++ b/src/cdaudio-ng/cdaudio-ng.c	Thu May 24 23:33:06 2007 -0700
@@ -79,7 +79,7 @@
 static InputPlugin inputplugin = {
 	NULL,
 	NULL,
-	NULL,
+	"Zither's CD Audio Plugin",
 	cdaudio_init,
 	cdaudio_about,
 	cdaudio_configure,
@@ -104,13 +104,9 @@
 	cdaudio_get_song_tuple
 };
 
+InputPlugin *cdaudio_iplist[] = { &inputplugin, NULL };
 
-InputPlugin *get_iplugin_info(void)
-{
-	inputplugin.description = g_strdup_printf("Zither's CD Audio Plugin");
-	return &inputplugin;
-}
-
+DECLARE_PLUGIN(cdaudio, NULL, NULL, cdaudio_iplist, NULL, NULL, NULL, NULL);
 
 void cdaudio_init()
 {