aboutsummaryrefslogtreecommitdiffstats
path: root/src/output
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/output/alsa_plugin.c4
-rw-r--r--src/output/ao_plugin.c2
-rw-r--r--src/output/fifo_plugin.c2
-rw-r--r--src/output/jack_plugin.c2
-rw-r--r--src/output/mvp_plugin.c2
-rw-r--r--src/output/null_plugin.c2
-rw-r--r--src/output/oss_plugin.c4
-rw-r--r--src/output/osx_plugin.c2
-rw-r--r--src/output/pulse_plugin.c2
-rw-r--r--src/output/shout_plugin.c2
-rw-r--r--src/output_api.h2
-rw-r--r--src/output_control.h2
-rw-r--r--src/output_init.c2
13 files changed, 15 insertions, 15 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;
diff --git a/src/output_api.h b/src/output_api.h
index 914eb2ede..b3c13335c 100644
--- a/src/output_api.h
+++ b/src/output_api.h
@@ -60,7 +60,7 @@ struct audio_output_plugin {
*/
void *(*init)(struct audio_output *ao,
const struct audio_format *audio_format,
- struct config_param *param);
+ const struct config_param *param);
/**
* Free resources allocated by this device.
diff --git a/src/output_control.h b/src/output_control.h
index b84fcf07a..603d2ac00 100644
--- a/src/output_control.h
+++ b/src/output_control.h
@@ -29,7 +29,7 @@ struct tag;
struct config_param;
int
-audio_output_init(struct audio_output *, struct config_param *param);
+audio_output_init(struct audio_output *, const struct config_param *param);
bool
audio_output_open(struct audio_output *audioOutput,
diff --git a/src/output_init.c b/src/output_init.c
index a0c75a5da..6d974bdb8 100644
--- a/src/output_init.c
+++ b/src/output_init.c
@@ -39,7 +39,7 @@
}
int
-audio_output_init(struct audio_output *ao, struct config_param *param)
+audio_output_init(struct audio_output *ao, const struct config_param *param)
{
const char *name = NULL;
char *format = NULL;