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/inputPlugins/audiofile_plugin.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 'src/inputPlugins/audiofile_plugin.c')
-rw-r--r-- | src/inputPlugins/audiofile_plugin.c | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/src/inputPlugins/audiofile_plugin.c b/src/inputPlugins/audiofile_plugin.c index 1dd488fb1..4335be03d 100644 --- a/src/inputPlugins/audiofile_plugin.c +++ b/src/inputPlugins/audiofile_plugin.c @@ -141,16 +141,11 @@ static struct tag *audiofileTagDup(char *file) static const char *audiofileSuffixes[] = { "wav", "au", "aiff", "aif", NULL }; struct decoder_plugin audiofilePlugin = { - "audiofile", - NULL, - NULL, - NULL, - NULL, - audiofile_decode, - audiofileTagDup, - INPUT_PLUGIN_STREAM_FILE, - audiofileSuffixes, - NULL + .name = "audiofile", + .file_decode = audiofile_decode, + .tag_dup = audiofileTagDup, + .stream_types = INPUT_PLUGIN_STREAM_FILE, + .suffixes = audiofileSuffixes, }; #else |