From f11eb14c8a7d0134ff5399e1c38777ad7938459a Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 21 Jan 2009 08:46:59 +0100 Subject: conf: added config_get_positive() This convenience function parses a configuration value into a positive integer. It aborts if parsing fails. --- src/conf.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/conf.h') diff --git a/src/conf.h b/src/conf.h index f94f6554..e9c75036 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); -- cgit v1.2.3