aboutsummaryrefslogtreecommitdiffstats
path: root/src/audioOutputs/audioOutput_ao.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-09-29 15:55:17 +0200
committerMax Kellermann <max@duempel.org>2008-09-29 15:55:17 +0200
commitde7cda1d6e8df9edc436196d0a2db25757abd236 (patch)
treeaba9009bb5ed55d3ada28ec64292211210cb6cd3 /src/audioOutputs/audioOutput_ao.c
parent21d3d300fdfa5d5e65bf22ec59fd37550d3c2dac (diff)
downloadmpd-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 'src/audioOutputs/audioOutput_ao.c')
-rw-r--r--src/audioOutputs/audioOutput_ao.c16
1 files changed, 7 insertions, 9 deletions
diff --git a/src/audioOutputs/audioOutput_ao.c b/src/audioOutputs/audioOutput_ao.c
index e712d582a..b91895bde 100644
--- a/src/audioOutputs/audioOutput_ao.c
+++ b/src/audioOutputs/audioOutput_ao.c
@@ -238,15 +238,13 @@ static int audioOutputAo_play(void *data, const char *playChunk, size_t size)
}
const struct audio_output_plugin aoPlugin = {
- "ao",
- NULL,
- audioOutputAo_initDriver,
- audioOutputAo_finishDriver,
- audioOutputAo_openDevice,
- audioOutputAo_play,
- audioOutputAo_dropBufferedAudio,
- audioOutputAo_closeDevice,
- NULL, /* sendMetadataFunc */
+ .name = "ao",
+ .init = audioOutputAo_initDriver,
+ .finish = audioOutputAo_finishDriver,
+ .open = audioOutputAo_openDevice,
+ .play = audioOutputAo_play,
+ .cancel = audioOutputAo_dropBufferedAudio,
+ .close = audioOutputAo_closeDevice,
};
#else