summaryrefslogtreecommitdiff
path: root/audio/coreaudio.c
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2009-08-11 02:31:16 +0200
committermalc <av1474@comtv.ru>2009-08-11 20:51:23 +0400
commit2700efa3236d20879473d6b9c612f882a1b43dda (patch)
tree4098584a760177929300d1d10cad92cb00a23e53 /audio/coreaudio.c
parentbee37f32d47a6c04ff57d18e01cf296607e22b30 (diff)
downloadqemu-2700efa3236d20879473d6b9c612f882a1b43dda.tar.gz
Use C99 initializers for audio_option
Signed-off-by: Juan Quintela <quintela@redhat.com>
Diffstat (limited to 'audio/coreaudio.c')
-rw-r--r--audio/coreaudio.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/audio/coreaudio.c b/audio/coreaudio.c
index c46b357d1f..ffeaa7f90b 100644
--- a/audio/coreaudio.c
+++ b/audio/coreaudio.c
@@ -513,11 +513,15 @@ static void coreaudio_audio_fini (void *opaque)
}
static struct audio_option coreaudio_options[] = {
- {"BUFFER_SIZE", AUD_OPT_INT, &conf.buffer_frames,
- "Size of the buffer in frames", NULL, 0},
- {"BUFFER_COUNT", AUD_OPT_INT, &conf.nbuffers,
- "Number of buffers", NULL, 0},
- {NULL, 0, NULL, NULL, NULL, 0}
+ {.name = "BUFFER_SIZE",
+ .tag = AUD_OPT_INT,
+ .valp = &conf.buffer_frames,
+ .descr = "Size of the buffer in frames"},
+ {.name = "BUFFER_COUNT",
+ .tag = AUD_OPT_INT,
+ .valp = &conf.nbuffers,
+ .descr = "Number of buffers"},
+ { /* End of list */ }
};
static struct audio_pcm_ops coreaudio_pcm_ops = {