diff options
author | Max Kellermann <max@duempel.org> | 2008-09-29 15:55:17 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-09-29 15:55:17 +0200 |
commit | de7cda1d6e8df9edc436196d0a2db25757abd236 (patch) | |
tree | aba9009bb5ed55d3ada28ec64292211210cb6cd3 /src/audioOutputs/audioOutput_fifo.c | |
parent | 21d3d300fdfa5d5e65bf22ec59fd37550d3c2dac (diff) | |
download | mpd-de7cda1d6e8df9edc436196d0a2db25757abd236.tar.gz mpd-de7cda1d6e8df9edc436196d0a2db25757abd236.tar.xz mpd-de7cda1d6e8df9edc436196d0a2db25757abd236.zip |
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.
Diffstat (limited to '')
-rw-r--r-- | src/audioOutputs/audioOutput_fifo.c | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/src/audioOutputs/audioOutput_fifo.c b/src/audioOutputs/audioOutput_fifo.c index 7a0180741..62257f6cb 100644 --- a/src/audioOutputs/audioOutput_fifo.c +++ b/src/audioOutputs/audioOutput_fifo.c @@ -270,15 +270,13 @@ static int fifo_playAudio(void *data, } const struct audio_output_plugin fifoPlugin = { - "fifo", - NULL, /* testDefaultDeviceFunc */ - fifo_initDriver, - fifo_finishDriver, - fifo_openDevice, - fifo_playAudio, - fifo_dropBufferedAudio, - fifo_closeDevice, - NULL, /* sendMetadataFunc */ + .name = "fifo", + .init = fifo_initDriver, + .finish = fifo_finishDriver, + .open = fifo_openDevice, + .play = fifo_playAudio, + .cancel = fifo_dropBufferedAudio, + .close = fifo_closeDevice, }; #else /* HAVE_FIFO */ |