changeset 1103:c087e8461bab trunk

[svn] - coreaudio: convert to plugin API v2
author nenolod
date Thu, 24 May 2007 23:40:51 -0700
parents 695d9c38774a
children c21fa61d32f8
files ChangeLog src/CoreAudio/coreaudio.c
diffstat 2 files changed, 31 insertions(+), 25 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Thu May 24 23:39:32 2007 -0700
+++ b/ChangeLog	Thu May 24 23:40:51 2007 -0700
@@ -1,3 +1,11 @@
+2007-05-25 06:39:32 +0000  William Pitcock <nenolod@sacredspiral.co.uk>
+  revision [2370]
+  - jack: convert to plugin API v2
+  
+  trunk/src/jack/jack.c |    6 ++----
+  1 file changed, 2 insertions(+), 4 deletions(-)
+
+
 2007-05-25 06:37:12 +0000  William Pitcock <nenolod@sacredspiral.co.uk>
   revision [2368]
   - pulse: convert to plugin API v2
--- a/src/CoreAudio/coreaudio.c	Thu May 24 23:39:32 2007 -0700
+++ b/src/CoreAudio/coreaudio.c	Thu May 24 23:40:51 2007 -0700
@@ -23,29 +23,27 @@
 #include <audacious/i18n.h>
 
 OutputPlugin osx_op =
-	{
-		NULL,
-		NULL,
-		NULL, /* Description */
-		osx_init,
-		NULL,
-		osx_about,
-		osx_configure,
-		osx_get_volume,
-		osx_set_volume,
-		osx_open,
-		osx_write,
-		osx_close,
-		osx_flush,
-		osx_pause,
-		osx_free,
-		osx_playing,
-		osx_get_output_time,
-		osx_get_written_time,
-	};
+{
+	NULL,
+	NULL,
+	"CoreAudio Output Plugin", /* Description */
+	osx_init,
+	NULL,
+	osx_about,
+	osx_configure,
+	osx_get_volume,
+	osx_set_volume,
+	osx_open,
+	osx_write,
+	osx_close,
+	osx_flush,
+	osx_pause,
+	osx_free,
+	osx_playing,
+	osx_get_output_time,
+	osx_get_written_time,
+};
 
-OutputPlugin *get_oplugin_info(void)
-{
-	osx_op.description = g_strdup(_("CoreAudio Output Plugin"));
-	return &osx_op;
-}
+OutputPlugin *coreaudio_oplist[] = { &osx_op, NULL };
+
+DECLARE_PLUGIN(coreaudio, NULL, NULL, NULL, coreaudio_oplist, NULL, NULL, NULL);