changeset 1101:661777673349 trunk

[svn] - pulse: convert to plugin API v2
author nenolod
date Thu, 24 May 2007 23:37:12 -0700
parents e363a0fa8ea0
children 695d9c38774a
files ChangeLog src/pulse_audio/pulse_audio.c
diffstat 2 files changed, 13 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Thu May 24 23:35:49 2007 -0700
+++ b/ChangeLog	Thu May 24 23:37:12 2007 -0700
@@ -1,3 +1,11 @@
+2007-05-25 06:35:49 +0000  William Pitcock <nenolod@sacredspiral.co.uk>
+  revision [2366]
+  - null: convert to plugin API v2
+  
+  trunk/src/null/null.c |    9 ++++-----
+  1 file changed, 4 insertions(+), 5 deletions(-)
+
+
 2007-05-25 06:34:49 +0000  William Pitcock <nenolod@sacredspiral.co.uk>
   revision [2364]
   - sun: convert to plugin API v2
--- a/src/pulse_audio/pulse_audio.c	Thu May 24 23:35:49 2007 -0700
+++ b/src/pulse_audio/pulse_audio.c	Thu May 24 23:37:12 2007 -0700
@@ -702,8 +702,7 @@
             &dialog);
 }
 
-OutputPlugin *get_oplugin_info(void) {
-    static OutputPlugin pulse_plugin = {
+static OutputPlugin pulse_op = {
         NULL,
         NULL,
         "PulseAudio Output Plugin",
@@ -723,7 +722,8 @@
         pulse_get_output_time,              
         pulse_get_written_time,
 	NULL,             
-    };
+};
 
-    return &pulse_plugin;
-}
+OutputPlugin *pulse_oplist[] = { &pulse_op, NULL };
+
+DECLARE_PLUGIN(pulse, NULL, NULL, NULL, pulse_oplist, NULL, NULL, NULL);