]> xenbits.xensource.com Git - qemu-xen-3.4-testing.git/commitdiff
Make audio_pcm_opsstatic const
authorblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>
Sun, 5 Oct 2008 10:01:05 +0000 (10:01 +0000)
committerblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>
Sun, 5 Oct 2008 10:01:05 +0000 (10:01 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5422 c046a42c-6fe2-441c-8c8c-71466251a162

audio/alsaaudio.c
audio/audio_int.h
audio/coreaudio.c
audio/dsoundaudio.c
audio/esdaudio.c
audio/fmodaudio.c
audio/noaudio.c
audio/ossaudio.c
audio/paaudio.c
audio/sdlaudio.c
audio/wavaudio.c

index a79cc403cb7662ab9624719c46499a6e3537dca6..e8322e584b278f5237f04a5a013ffa89a1208c99 100644 (file)
@@ -917,7 +917,7 @@ static struct audio_option alsa_options[] = {
     {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,
index d4cefb34a64c70495db063d4cd923b1522bdf526..d197499e18c863ce74ae95789b1256af481c4c58 100644 (file)
@@ -81,7 +81,7 @@ typedef struct HWVoiceOut {
     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 @@ typedef struct HWVoiceIn {
 
     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_driver {
     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;
index 516bb3fad6a81585012efd06118ecf31b5bb3596..72fcc66f0a1e0044b808a37fb18f2a685d72c017 100644 (file)
@@ -520,7 +520,7 @@ static struct audio_option coreaudio_options[] = {
     {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,
index cba8c800303a36c54fe3a73cadf74bb93c2461a9..c8762d050b6ee5ddc4daa0910d42c94597590b18 100644 (file)
@@ -1057,7 +1057,7 @@ static struct audio_option dsound_options[] = {
     {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,
index d91468b9dccd5daecf33d46f93a53c24ae9a0f44..6339ddadb0e75b239d71c217ce6d21e39bc6d522 100644 (file)
@@ -566,7 +566,7 @@ struct audio_option qesd_options[] = {
     {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,
index 04f4e40b3a0fbad8317c2af3284803cf7bd7763f..962a25f2d210009da88b4b56fcff059f6507a0ab 100644 (file)
@@ -657,7 +657,7 @@ static struct audio_option fmod_options[] = {
     {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,
index 64695e6af9373e34affe736804ccb6a72d49efe2..c907aad9488806e690a916d8ac5993f424009c4b 100644 (file)
@@ -145,7 +145,7 @@ static void no_audio_fini (void *opaque)
     (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,
index 613e189db1b6ff8c8aec1f1dd31eb3e2cf43372d..a821ccb5f1a126ce4b2de4209fe476db3bd3cf81 100644 (file)
@@ -751,7 +751,7 @@ static struct audio_option oss_options[] = {
     {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,
index b5d390c2d0ca749e19b79953b2647e28c231354b..be9ebaec33da8f6f6fafc0c622ce257290aca2fe 100644 (file)
@@ -487,7 +487,7 @@ struct audio_option qpa_options[] = {
     {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,
index b6cfad18f5a396387d8a91c8c65f8a67bfe58056..5df173616dcc340aaba23096abb37973ebdc7451 100644 (file)
@@ -423,7 +423,7 @@ static struct audio_option sdl_options[] = {
     {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,
index ea7c6a8c36c2964b126406d20a205780f02d1f4f..85575bd3720f868d3530e16bed9a35fea6bb8725 100644 (file)
@@ -218,7 +218,7 @@ static void wav_audio_fini (void *opaque)
     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 @@ struct audio_option wav_options[] = {
     {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,