From de7cda1d6e8df9edc436196d0a2db25757abd236 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 29 Sep 2008 15:55:17 +0200 Subject: use C99 struct initializers The old struct initializers are error prone and don't allow moving elements around. Since we are going to overhaul some of the APIs soon, it's easier to have all implementations use C99 initializers. --- src/audioOutputs/audioOutput_pulse.c | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'src/audioOutputs/audioOutput_pulse.c') diff --git a/src/audioOutputs/audioOutput_pulse.c b/src/audioOutputs/audioOutput_pulse.c index 91fea9c60..38014c8f0 100644 --- a/src/audioOutputs/audioOutput_pulse.c +++ b/src/audioOutputs/audioOutput_pulse.c @@ -204,15 +204,14 @@ static int pulse_playAudio(void *data, } const struct audio_output_plugin pulsePlugin = { - "pulse", - pulse_testDefault, - pulse_initDriver, - pulse_finishDriver, - pulse_openDevice, - pulse_playAudio, - pulse_dropBufferedAudio, - pulse_closeDevice, - NULL, /* sendMetadataFunc */ + .name = "pulse", + .test_default_device = pulse_testDefault, + .init = pulse_initDriver, + .finish = pulse_finishDriver, + .open = pulse_openDevice, + .play = pulse_playAudio, + .cancel = pulse_dropBufferedAudio, + .close = pulse_closeDevice, }; #else /* HAVE_PULSE */ -- cgit v1.2.3