diff options
author | Max Kellermann <max@duempel.org> | 2009-01-25 16:03:49 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-01-25 16:03:49 +0100 |
commit | 5f7791009790dc40f2d76be310ffeab55c242ced (patch) | |
tree | 5e26d9d5f873a76fe61c6403a69ae123b0d57ad3 /src/output | |
parent | 80799fa84eb4330083e4de20b87f97beea7d6ba7 (diff) | |
download | mpd-5f7791009790dc40f2d76be310ffeab55c242ced.tar.gz mpd-5f7791009790dc40f2d76be310ffeab55c242ced.tar.xz mpd-5f7791009790dc40f2d76be310ffeab55c242ced.zip |
conf: const pointers in block get functions
All config_get_block_*() functions should accept constant config_param
pointers.
Diffstat (limited to 'src/output')
-rw-r--r-- | src/output/alsa_plugin.c | 4 | ||||
-rw-r--r-- | src/output/ao_plugin.c | 2 | ||||
-rw-r--r-- | src/output/fifo_plugin.c | 2 | ||||
-rw-r--r-- | src/output/jack_plugin.c | 2 | ||||
-rw-r--r-- | src/output/mvp_plugin.c | 2 | ||||
-rw-r--r-- | src/output/null_plugin.c | 2 | ||||
-rw-r--r-- | src/output/oss_plugin.c | 4 | ||||
-rw-r--r-- | src/output/osx_plugin.c | 2 | ||||
-rw-r--r-- | src/output/pulse_plugin.c | 2 | ||||
-rw-r--r-- | src/output/shout_plugin.c | 2 |
10 files changed, 12 insertions, 12 deletions
diff --git a/src/output/alsa_plugin.c b/src/output/alsa_plugin.c index 3ad502ba2..536d399d1 100644 --- a/src/output/alsa_plugin.c +++ b/src/output/alsa_plugin.c @@ -108,7 +108,7 @@ alsa_data_free(struct alsa_data *ad) } static void -alsa_configure(struct alsa_data *ad, struct config_param *param) +alsa_configure(struct alsa_data *ad, const struct config_param *param) { ad->device = config_dup_block_string(param, "device", NULL); @@ -138,7 +138,7 @@ alsa_configure(struct alsa_data *ad, struct config_param *param) static void * alsa_init(G_GNUC_UNUSED struct audio_output *ao, G_GNUC_UNUSED const struct audio_format *audio_format, - struct config_param *param) + const struct config_param *param) { /* no need for pthread_once thread-safety when reading config */ static int free_global_registered; diff --git a/src/output/ao_plugin.c b/src/output/ao_plugin.c index f24805de0..10ce9c9de 100644 --- a/src/output/ao_plugin.c +++ b/src/output/ao_plugin.c @@ -77,7 +77,7 @@ static void audioOutputAo_error(const char *msg) static void * audioOutputAo_initDriver(struct audio_output *ao, G_GNUC_UNUSED const struct audio_format *audio_format, - struct config_param *param) + const struct config_param *param) { ao_info *ai; AoData *ad = newAoData(); diff --git a/src/output/fifo_plugin.c b/src/output/fifo_plugin.c index 5d1f287b2..b0c6d12f4 100644 --- a/src/output/fifo_plugin.c +++ b/src/output/fifo_plugin.c @@ -161,7 +161,7 @@ static bool openFifo(FifoData *fd) static void *fifo_initDriver(G_GNUC_UNUSED struct audio_output *ao, G_GNUC_UNUSED const struct audio_format *audio_format, - struct config_param *param) + const struct config_param *param) { FifoData *fd; char *value, *path; diff --git a/src/output/jack_plugin.c b/src/output/jack_plugin.c index 185f73860..8d09dd1d9 100644 --- a/src/output/jack_plugin.c +++ b/src/output/jack_plugin.c @@ -183,7 +183,7 @@ mpd_jack_error(const char *msg) static void * mpd_jack_init(struct audio_output *ao, G_GNUC_UNUSED const struct audio_format *audio_format, - struct config_param *param) + const struct config_param *param) { struct jack_data *jd; const char *value; diff --git a/src/output/mvp_plugin.c b/src/output/mvp_plugin.c index cc3d53ae2..cf63faf08 100644 --- a/src/output/mvp_plugin.c +++ b/src/output/mvp_plugin.c @@ -112,7 +112,7 @@ static bool mvp_testDefault(void) static void *mvp_initDriver(G_GNUC_UNUSED struct audio_output *audio_output, G_GNUC_UNUSED const struct audio_format *audio_format, - G_GNUC_UNUSED struct config_param *param) + G_GNUC_UNUSED const struct config_param *param) { MvpData *md = g_new(MvpData, 1); md->audio_output = audio_output; diff --git a/src/output/null_plugin.c b/src/output/null_plugin.c index 7530a20cc..1ae55ca9b 100644 --- a/src/output/null_plugin.c +++ b/src/output/null_plugin.c @@ -32,7 +32,7 @@ struct null_data { static void * null_init(G_GNUC_UNUSED struct audio_output *audio_output, G_GNUC_UNUSED const struct audio_format *audio_format, - G_GNUC_UNUSED struct config_param *param) + G_GNUC_UNUSED const struct config_param *param) { struct null_data *nd = g_new(struct null_data, 1); diff --git a/src/output/oss_plugin.c b/src/output/oss_plugin.c index e83a05c5a..b27aa1b77 100644 --- a/src/output/oss_plugin.c +++ b/src/output/oss_plugin.c @@ -344,7 +344,7 @@ static bool oss_testDefault(void) return false; } -static void *oss_open_default(struct config_param *param) +static void *oss_open_default(const struct config_param *param) { int i; int err[G_N_ELEMENTS(default_devices)]; @@ -390,7 +390,7 @@ static void *oss_open_default(struct config_param *param) static void * oss_initDriver(G_GNUC_UNUSED struct audio_output *audioOutput, G_GNUC_UNUSED const struct audio_format *audio_format, - struct config_param *param) + const struct config_param *param) { if (param) { const char *device = diff --git a/src/output/osx_plugin.c b/src/output/osx_plugin.c index 8afd2a934..44a87f9d3 100644 --- a/src/output/osx_plugin.c +++ b/src/output/osx_plugin.c @@ -83,7 +83,7 @@ static bool osx_testDefault(void) static void * osx_initDriver(G_GNUC_UNUSED struct audio_output *audioOutput, G_GNUC_UNUSED const struct audio_format *audio_format, - G_GNUC_UNUSED struct config_param *param) + G_GNUC_UNUSED const struct config_param *param) { return newOsxData(); } diff --git a/src/output/pulse_plugin.c b/src/output/pulse_plugin.c index 45710b4a9..559d2ee56 100644 --- a/src/output/pulse_plugin.c +++ b/src/output/pulse_plugin.c @@ -55,7 +55,7 @@ static void pulse_free_data(struct pulse_data *pd) static void * pulse_init(struct audio_output *ao, G_GNUC_UNUSED const struct audio_format *audio_format, - struct config_param *param) + const struct config_param *param) { struct pulse_data *pd; diff --git a/src/output/shout_plugin.c b/src/output/shout_plugin.c index 7d3e4aaf0..2217bc56e 100644 --- a/src/output/shout_plugin.c +++ b/src/output/shout_plugin.c @@ -94,7 +94,7 @@ static void free_shout_data(struct shout_data *sd) static void *my_shout_init_driver(struct audio_output *audio_output, const struct audio_format *audio_format, - struct config_param *param) + const struct config_param *param) { struct shout_data *sd; char *test; |