# HG changeset patch # User Christian Birchinger # Date 1189255751 -7200 # Node ID 815c23eab53eceaecb087031bcff1d267a23cb4e # Parent e1985da23d28cadb4f5a325a40d6e67bb909c247 Fix pulseaudio plugin diff -r e1985da23d28 -r 815c23eab53e src/pulse_audio/pulse_audio.c --- a/src/pulse_audio/pulse_audio.c Sat Sep 08 04:39:38 2007 +0300 +++ b/src/pulse_audio/pulse_audio.c Sat Sep 08 14:49:11 2007 +0200 @@ -704,27 +704,21 @@ } static OutputPlugin pulse_op = { - NULL, - NULL, - "PulseAudio Output Plugin", - NULL, - NULL, - pulse_about, - NULL, - pulse_get_volume, - pulse_set_volume, - pulse_open, - pulse_write, - pulse_close, - pulse_flush, - pulse_pause, - pulse_free, - pulse_playing, - pulse_get_output_time, - pulse_get_written_time, - NULL, + .description = "PulseAudio Output Plugin", + .about = pulse_about, + .get_volume = pulse_get_volume, + .set_volume = pulse_set_volume, + .open_audio = pulse_open, + .write_audio = pulse_write, + .close_audio = pulse_close, + .flush = pulse_flush, + .pause = pulse_pause, + .buffer_free = pulse_free, + .buffer_playing = pulse_playing, + .output_time = pulse_get_output_time, + .written_time = pulse_get_written_time, }; OutputPlugin *pulse_oplist[] = { &pulse_op, NULL }; -DECLARE_PLUGIN(pulse, NULL, NULL, NULL, pulse_oplist, NULL, NULL, NULL, NULL); +SIMPLE_OUTPUT_PLUGIN(pulser, pulse_oplist);