aboutsummaryrefslogtreecommitdiffstats
path: root/src/config/ConfigGlobal.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-02-19 23:57:55 +0100
committerMax Kellermann <max@duempel.org>2014-02-20 00:04:23 +0100
commit008723c62fe9686812758dfffb06d59f998f6204 (patch)
tree6bb222d69c3e13fc29a6b1ac449b7815944036db /src/config/ConfigGlobal.hxx
parent9e0ce23a03096a9a2e3ac2936ca64b8ea1fdd326 (diff)
downloadmpd-008723c62fe9686812758dfffb06d59f998f6204.tar.gz
mpd-008723c62fe9686812758dfffb06d59f998f6204.tar.xz
mpd-008723c62fe9686812758dfffb06d59f998f6204.zip
ConfigGlobal: eliminate function config_get_next_param()
Diffstat (limited to 'src/config/ConfigGlobal.hxx')
-rw-r--r--src/config/ConfigGlobal.hxx15
1 files changed, 3 insertions, 12 deletions
diff --git a/src/config/ConfigGlobal.hxx b/src/config/ConfigGlobal.hxx
index 84ef7dd5f..831418d03 100644
--- a/src/config/ConfigGlobal.hxx
+++ b/src/config/ConfigGlobal.hxx
@@ -26,6 +26,7 @@
class Error;
class Path;
class AllocatedPath;
+struct config_param;
void config_global_init(void);
void config_global_finish(void);
@@ -39,19 +40,9 @@ void config_global_check(void);
bool
ReadConfigFile(Path path, Error &error);
-/* don't free the returned value
- set _last_ to nullptr to get first entry */
gcc_pure
-const struct config_param *
-config_get_next_param(enum ConfigOption option,
- const struct config_param *last);
-
-gcc_pure
-static inline const struct config_param *
-config_get_param(enum ConfigOption option)
-{
- return config_get_next_param(option, nullptr);
-}
+const config_param *
+config_get_param(enum ConfigOption option);
/**
* Find a block with a matching attribute.