[5422] Make audio_pcm_opsstatic const
Revision: 5422
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5422 Author: blueswir1 Date: 2008-10-05 10:01:05 +0000 (Sun, 05 Oct 2008)
Log Message:
-----------
Make audio_pcm_opsstatic const
Modified Paths:
--------------
trunk/audio/alsaaudio.c
trunk/audio/audio_int.h
trunk/audio/coreaudio.c
trunk/audio/dsoundaudio.c
trunk/audio/esdaudio.c
trunk/audio/fmodaudio.c
trunk/audio/noaudio.c
trunk/audio/ossaudio.c
trunk/audio/paaudio.c
trunk/audio/sdlaudio.c
trunk/audio/wavaudio.c
Modified: trunk/audio/alsaaudio.c
===================================================================
audio/alsaaudio.c +1 -1
@@ -917,7 +917,7 @@ {NULL, 0, NULL, NULL, NULL, 0} }; -static struct audio_pcm_ops alsa_pcm_ops = { +static const struct audio_pcm_ops alsa_pcm_ops = { alsa_init_out, alsa_fini_out, alsa_run_out,
Modified: trunk/audio/audio_int.h
===================================================================
audio/audio_int.h +3 -3
@@ -81,7 +81,7 @@int samples; LIST_HEAD (sw_out_listhead, SWVoiceOut) sw_head; LIST_HEAD (sw_cap_listhead, SWVoiceCap) cap_head; -struct audio_pcm_ops *pcm_ops; +const struct audio_pcm_ops *pcm_ops;LIST_ENTRY (HWVoiceOut) entries; } HWVoiceOut;
@@ -99,7 +99,7 @@int samples; LIST_HEAD (sw_in_listhead, SWVoiceIn) sw_head; -struct audio_pcm_ops *pcm_ops; +const struct audio_pcm_ops *pcm_ops;LIST_ENTRY (HWVoiceIn) entries; } HWVoiceIn;
@@ -140,7 +140,7 @@struct audio_option *options;void *(*init) (void );void (*fini) (void *); -struct audio_pcm_ops *pcm_ops; +const struct audio_pcm_ops *pcm_ops;int can_be_default;int max_voices_out;int max_voices_in;
Modified: trunk/audio/coreaudio.c
===================================================================
audio/coreaudio.c +1 -1
@@ -520,7 +520,7 @@ {NULL, 0, NULL, NULL, NULL, 0} }; -static struct audio_pcm_ops coreaudio_pcm_ops = { +static const struct audio_pcm_ops coreaudio_pcm_ops = { coreaudio_init_out, coreaudio_fini_out, coreaudio_run_out,
Modified: trunk/audio/dsoundaudio.c
===================================================================
audio/dsoundaudio.c +1 -1
@@ -1057,7 +1057,7 @@ {NULL, 0, NULL, NULL, NULL, 0} }; -static struct audio_pcm_ops dsound_pcm_ops = { +static const struct audio_pcm_ops dsound_pcm_ops = { dsound_init_out, dsound_fini_out, dsound_run_out,
Modified: trunk/audio/esdaudio.c
===================================================================
audio/esdaudio.c +1 -1
@@ -566,7 +566,7 @@ {NULL, 0, NULL, NULL, NULL, 0} }; -struct audio_pcm_ops qesd_pcm_ops = { +static const struct audio_pcm_ops qesd_pcm_ops = { qesd_init_out, qesd_fini_out, qesd_run_out,
Modified: trunk/audio/fmodaudio.c
===================================================================
audio/fmodaudio.c +1 -1
@@ -657,7 +657,7 @@ {NULL, 0, NULL, NULL, NULL, 0} }; -static struct audio_pcm_ops fmod_pcm_ops = { +static const struct audio_pcm_ops fmod_pcm_ops = { fmod_init_out, fmod_fini_out, fmod_run_out,
Modified: trunk/audio/noaudio.c
===================================================================
audio/noaudio.c +1 -1
@@ -145,7 +145,7 @@ (void ) opaque; } -static struct audio_pcm_ops no_pcm_ops = { +static const struct audio_pcm_ops no_pcm_ops = { no_init_out, no_fini_out, no_run_out,
Modified: trunk/audio/ossaudio.c
===================================================================
audio/ossaudio.c +1 -1
@@ -751,7 +751,7 @@ {NULL, 0, NULL, NULL, NULL, 0} }; -static struct audio_pcm_ops oss_pcm_ops = { +static const struct audio_pcm_ops oss_pcm_ops = { oss_init_out, oss_fini_out, oss_run_out,
Modified: trunk/audio/paaudio.c
===================================================================
audio/paaudio.c +1 -1
@@ -487,7 +487,7 @@ {NULL, 0, NULL, NULL, NULL, 0} }; -struct audio_pcm_ops qpa_pcm_ops = { +static const struct audio_pcm_ops qpa_pcm_ops = { qpa_init_out, qpa_fini_out, qpa_run_out,
Modified: trunk/audio/sdlaudio.c
===================================================================
audio/sdlaudio.c +1 -1
@@ -423,7 +423,7 @@ {NULL, 0, NULL, NULL, NULL, 0} }; -static struct audio_pcm_ops sdl_pcm_ops = { +static const struct audio_pcm_ops sdl_pcm_ops = { sdl_init_out, sdl_fini_out, sdl_run_out,
Modified: trunk/audio/wavaudio.c
===================================================================
audio/wavaudio.c +2 -2
@@ -218,7 +218,7 @@ldebug ("wav_fini" ); } -struct audio_option wav_options[] = { +static struct audio_option wav_options[] = { {"FREQUENCY" ,AUD_OPT_INT , &conf.settings.freq,"Frequency" ,NULL ,0 },
@@ -233,7 +233,7 @@ {NULL, 0, NULL, NULL, NULL, 0} }; -struct audio_pcm_ops wav_pcm_ops = { +static const struct audio_pcm_ops wav_pcm_ops = { wav_init_out, wav_fini_out, wav_run_out,