aboutsummaryrefslogtreecommitdiffstats
path: root/src/output
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-01-17 20:23:27 +0100
committerMax Kellermann <max@duempel.org>2009-01-17 20:23:27 +0100
commit4d472c265ed0b3f7f61ee624c01c8ef319db7c99 (patch)
tree8ec3ea874c741c9b0e1ab70db2a96e02acec8225 /src/output
parent2bbf378dd8a3f12b4b79228ce562402c29d2cd09 (diff)
downloadmpd-4d472c265ed0b3f7f61ee624c01c8ef319db7c99.tar.gz
mpd-4d472c265ed0b3f7f61ee624c01c8ef319db7c99.tar.xz
mpd-4d472c265ed0b3f7f61ee624c01c8ef319db7c99.zip
conf: no CamelCase, part I
Renamed functions, types, variables.
Diffstat (limited to 'src/output')
-rw-r--r--src/output/alsa_plugin.c11
-rw-r--r--src/output/ao_plugin.c9
-rw-r--r--src/output/fifo_plugin.c4
-rw-r--r--src/output/jack_plugin.c4
-rw-r--r--src/output/mvp_plugin.c2
-rw-r--r--src/output/null_plugin.c2
-rw-r--r--src/output/oss_plugin.c11
-rw-r--r--src/output/osx_plugin.c2
-rw-r--r--src/output/pulse_plugin.c6
-rw-r--r--src/output/shout_plugin.c4
10 files changed, 29 insertions, 26 deletions
diff --git a/src/output/alsa_plugin.c b/src/output/alsa_plugin.c
index 58f549800..0645b34b4 100644
--- a/src/output/alsa_plugin.c
+++ b/src/output/alsa_plugin.c
@@ -88,9 +88,9 @@ static void freeAlsaData(AlsaData * ad)
}
static void
-alsa_configure(AlsaData *ad, ConfigParam *param)
+alsa_configure(AlsaData *ad, struct config_param *param)
{
- BlockParam *bp;
+ struct block_param *bp;
if ((bp = getBlockParam(param, "device")))
ad->device = g_strdup(bp->value);
@@ -119,9 +119,10 @@ alsa_configure(AlsaData *ad, ConfigParam *param)
#endif
}
-static void *alsa_initDriver(G_GNUC_UNUSED struct audio_output *ao,
- G_GNUC_UNUSED const struct audio_format *audio_format,
- ConfigParam * param)
+static void *
+alsa_initDriver(G_GNUC_UNUSED struct audio_output *ao,
+ G_GNUC_UNUSED const struct audio_format *audio_format,
+ 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 fcbc52dc4..269620143 100644
--- a/src/output/ao_plugin.c
+++ b/src/output/ao_plugin.c
@@ -74,14 +74,15 @@ static void audioOutputAo_error(const char *msg)
g_warning("%s: %s\n", msg, error);
}
-static void *audioOutputAo_initDriver(struct audio_output *ao,
- G_GNUC_UNUSED const struct audio_format *audio_format,
- ConfigParam * param)
+static void *
+audioOutputAo_initDriver(struct audio_output *ao,
+ G_GNUC_UNUSED const struct audio_format *audio_format,
+ struct config_param *param)
{
ao_info *ai;
char *test;
AoData *ad = newAoData();
- BlockParam *blockParam;
+ struct block_param *blockParam;
if ((blockParam = getBlockParam(param, "write_size"))) {
ad->writeSize = strtol(blockParam->value, &test, 10);
diff --git a/src/output/fifo_plugin.c b/src/output/fifo_plugin.c
index efadc8ff6..01db714cf 100644
--- a/src/output/fifo_plugin.c
+++ b/src/output/fifo_plugin.c
@@ -161,10 +161,10 @@ 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,
- ConfigParam *param)
+ struct config_param *param)
{
FifoData *fd;
- BlockParam *blockParam;
+ struct block_param *blockParam;
char *path;
blockParam = getBlockParam(param, "path");
diff --git a/src/output/jack_plugin.c b/src/output/jack_plugin.c
index 1aff7d5a1..b65ac97ee 100644
--- a/src/output/jack_plugin.c
+++ b/src/output/jack_plugin.c
@@ -186,10 +186,10 @@ mpd_jack_error(const char *msg)
static void *
mpd_jack_init(struct audio_output *ao,
G_GNUC_UNUSED const struct audio_format *audio_format,
- ConfigParam *param)
+ struct config_param *param)
{
struct jack_data *jd;
- BlockParam *bp;
+ struct block_param *bp;
char *endptr;
int val;
char *cp = NULL;
diff --git a/src/output/mvp_plugin.c b/src/output/mvp_plugin.c
index f4ca64c9f..cc3d53ae2 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 ConfigParam *param)
+ G_GNUC_UNUSED 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 d821d6aee..077764308 100644
--- a/src/output/null_plugin.c
+++ b/src/output/null_plugin.c
@@ -28,7 +28,7 @@ struct null_data {
static void *
null_initDriver(G_GNUC_UNUSED struct audio_output *audioOutput,
G_GNUC_UNUSED const struct audio_format *audio_format,
- G_GNUC_UNUSED ConfigParam *param)
+ G_GNUC_UNUSED struct config_param *param)
{
struct null_data *nd = g_new(struct null_data, 1);
nd->timer = NULL;
diff --git a/src/output/oss_plugin.c b/src/output/oss_plugin.c
index cdab24fbd..f66280752 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(ConfigParam *param)
+static void *oss_open_default(struct config_param *param)
{
int i;
int err[G_N_ELEMENTS(default_devices)];
@@ -387,12 +387,13 @@ static void *oss_open_default(ConfigParam *param)
return NULL; /* some compilers can be dumb... */
}
-static void *oss_initDriver(G_GNUC_UNUSED struct audio_output *audioOutput,
- G_GNUC_UNUSED const struct audio_format *audio_format,
- ConfigParam * 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)
{
if (param) {
- BlockParam *bp = getBlockParam(param, "device");
+ struct block_param *bp = getBlockParam(param, "device");
if (bp) {
OssData *od = newOssData();
od->device = bp->value;
diff --git a/src/output/osx_plugin.c b/src/output/osx_plugin.c
index ed3e92073..8afd2a934 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 ConfigParam * param)
+ G_GNUC_UNUSED struct config_param *param)
{
return newOsxData();
}
diff --git a/src/output/pulse_plugin.c b/src/output/pulse_plugin.c
index e1f6f179b..7d746378c 100644
--- a/src/output/pulse_plugin.c
+++ b/src/output/pulse_plugin.c
@@ -55,10 +55,10 @@ 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,
- ConfigParam *param)
+ struct config_param *param)
{
- BlockParam *server = NULL;
- BlockParam *sink = NULL;
+ struct block_param *server = NULL;
+ struct block_param *sink = NULL;
struct pulse_data *pd;
if (param) {
diff --git a/src/output/shout_plugin.c b/src/output/shout_plugin.c
index 06c229e0c..5947f6e20 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,
- ConfigParam *param)
+ struct config_param *param)
{
struct shout_data *sd;
char *test;
@@ -106,7 +106,7 @@ static void *my_shout_init_driver(struct audio_output *audio_output,
unsigned protocol;
const char *user;
char *name;
- BlockParam *block_param;
+ struct block_param *block_param;
int public;
sd = new_shout_data();