aboutsummaryrefslogtreecommitdiffstats
path: root/src/conf.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-06-03 06:55:04 +0200
committerMax Kellermann <max@duempel.org>2009-06-03 06:55:04 +0200
commitddc2694419442b68eac4c04069c991ecd2fa26ee (patch)
tree005978160f38610f7cb40f2b554dc85fb501a9c6 /src/conf.c
parent5c5d39b0124027fdd6ad035d784cbea97e7fecb7 (diff)
downloadmpd-ddc2694419442b68eac4c04069c991ecd2fa26ee.tar.gz
mpd-ddc2694419442b68eac4c04069c991ecd2fa26ee.tar.xz
mpd-ddc2694419442b68eac4c04069c991ecd2fa26ee.zip
conf: eliminated CamelCase
Renamed all remaining CamelCase functions.
Diffstat (limited to '')
-rw-r--r--src/conf.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/conf.c b/src/conf.c
index 608b4804b..50d6bcba0 100644
--- a/src/conf.c
+++ b/src/conf.c
@@ -70,7 +70,7 @@ static int get_bool(const char *value)
}
struct config_param *
-newConfigParam(const char *value, int line)
+config_new_param(const char *value, int line)
{
struct config_param *ret = g_new(struct config_param, 1);
@@ -220,8 +220,8 @@ void config_global_init(void)
}
void
-addBlockParam(struct config_param * param, const char *name, const char *value,
- int line)
+config_add_block_param(struct config_param * param, const char *name,
+ const char *value, int line)
{
struct block_param *bp;
@@ -239,9 +239,9 @@ addBlockParam(struct config_param * param, const char *name, const char *value,
}
static struct config_param *
-config_read_fileigBlock(FILE * fp, int *count, char *string)
+config_read_block(FILE *fp, int *count, char *string)
{
- struct config_param *ret = newConfigParam(NULL, *count);
+ struct config_param *ret = config_new_param(NULL, *count);
int i;
int numberOfArgs;
@@ -284,7 +284,7 @@ config_read_fileigBlock(FILE * fp, int *count, char *string)
*count, string, ret->line);
}
- addBlockParam(ret, array[0], array[1], *count);
+ config_add_block_param(ret, array[0], array[1], *count);
}
return ret;
@@ -349,9 +349,9 @@ void config_read_file(const char *file)
g_error("improperly formatted config file at "
"line %i: %s\n", count, string);
}
- param = config_read_fileigBlock(fp, &count, string);
+ param = config_read_block(fp, &count, string);
} else
- param = newConfigParam(array[1], count);
+ param = config_new_param(array[1], count);
entry->params = g_slist_append(entry->params, param);
}
@@ -446,7 +446,7 @@ config_get_positive(const char *name, unsigned default_value)
}
struct block_param *
-getBlockParam(const struct config_param * param, const char *name)
+config_get_block_param(const struct config_param * param, const char *name)
{
struct block_param *ret = NULL;
int i;
@@ -492,7 +492,7 @@ const char *
config_get_block_string(const struct config_param *param, const char *name,
const char *default_value)
{
- struct block_param *bp = getBlockParam(param, name);
+ struct block_param *bp = config_get_block_param(param, name);
if (bp == NULL)
return default_value;
@@ -504,7 +504,7 @@ unsigned
config_get_block_unsigned(const struct config_param *param, const char *name,
unsigned default_value)
{
- struct block_param *bp = getBlockParam(param, name);
+ struct block_param *bp = config_get_block_param(param, name);
long value;
char *endptr;
@@ -525,7 +525,7 @@ bool
config_get_block_bool(const struct config_param *param, const char *name,
bool default_value)
{
- struct block_param *bp = getBlockParam(param, name);
+ struct block_param *bp = config_get_block_param(param, name);
int value;
if (bp == NULL)