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_jack.c | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'src/audioOutputs/audioOutput_jack.c') diff --git a/src/audioOutputs/audioOutput_jack.c b/src/audioOutputs/audioOutput_jack.c index f817bd435..a0e39506c 100644 --- a/src/audioOutputs/audioOutput_jack.c +++ b/src/audioOutputs/audioOutput_jack.c @@ -435,15 +435,14 @@ static int jack_playAudio(void *data, } const struct audio_output_plugin jackPlugin = { - "jack", - jack_testDefault, - jack_initDriver, - jack_finishDriver, - jack_openDevice, - jack_playAudio, - jack_dropBufferedAudio, - jack_closeDevice, - NULL, /* sendMetadataFunc */ + .name = "jack", + .test_default_device = jack_testDefault, + .init = jack_initDriver, + .finish = jack_finishDriver, + .open = jack_openDevice, + .play = jack_playAudio, + .cancel = jack_dropBufferedAudio, + .close = jack_closeDevice, }; #else /* HAVE JACK */ -- cgit v1.2.3