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/conf.h | |
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 '')
-rw-r--r-- | src/conf.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/conf.h b/src/conf.h index a133198bd..42ac6f228 100644 --- a/src/conf.h +++ b/src/conf.h @@ -94,7 +94,7 @@ void config_read_file(const char *file); /* don't free the returned value set _last_ to NULL to get first entry */ struct config_param * -config_get_next_param(const char *name, struct config_param *last); +config_get_next_param(const char *name, const struct config_param *last); static inline struct config_param * config_get_param(const char *name) @@ -117,27 +117,27 @@ unsigned config_get_positive(const char *name, unsigned default_value); struct block_param * -getBlockParam(struct config_param *param, const char *name); +getBlockParam(const struct config_param *param, const char *name); bool config_get_bool(const char *name, bool default_value); const char * -config_get_block_string(struct config_param *param, const char *name, +config_get_block_string(const struct config_param *param, const char *name, const char *default_value); static inline char * -config_dup_block_string(struct config_param *param, const char *name, +config_dup_block_string(const struct config_param *param, const char *name, const char *default_value) { return g_strdup(config_get_block_string(param, name, default_value)); } unsigned -config_get_block_unsigned(struct config_param *param, const char *name, +config_get_block_unsigned(const struct config_param *param, const char *name, unsigned default_value); bool -config_get_block_bool(struct config_param *param, const char *name, +config_get_block_bool(const struct config_param *param, const char *name, bool default_value); struct config_param * |