aboutsummaryrefslogtreecommitdiffstats
path: root/src/conf.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-01-21 08:46:59 +0100
committerMax Kellermann <max@duempel.org>2009-01-21 08:46:59 +0100
commitf11eb14c8a7d0134ff5399e1c38777ad7938459a (patch)
tree86e0f1ceda0b378f4b7894fca958eb278b8256d3 /src/conf.h
parent17222e95615eab116893d29a7fc78ea63b18f968 (diff)
downloadmpd-f11eb14c8a7d0134ff5399e1c38777ad7938459a.tar.gz
mpd-f11eb14c8a7d0134ff5399e1c38777ad7938459a.tar.xz
mpd-f11eb14c8a7d0134ff5399e1c38777ad7938459a.zip
conf: added config_get_positive()
This convenience function parses a configuration value into a positive integer. It aborts if parsing fails.
Diffstat (limited to 'src/conf.h')
-rw-r--r--src/conf.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/conf.h b/src/conf.h
index f94f6554f..e9c750368 100644
--- a/src/conf.h
+++ b/src/conf.h
@@ -110,6 +110,9 @@ config_get_string(const char *name, const char *default_value);
const char *
config_get_path(const char *name);
+unsigned
+config_get_positive(const char *name, unsigned default_value);
+
struct block_param *
getBlockParam(struct config_param *param, const char *name);