From 62b5f9d7d649be845774ed4d876deb586f538c74 Mon Sep 17 00:00:00 2001 From: Matthias Wachs Date: Wed, 14 May 2014 08:09:42 +0000 Subject: adding function to read float from cfg --- src/include/gnunet_configuration_lib.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/include') diff --git a/src/include/gnunet_configuration_lib.h b/src/include/gnunet_configuration_lib.h index 0448a5865..ac14dde64 100644 --- a/src/include/gnunet_configuration_lib.h +++ b/src/include/gnunet_configuration_lib.h @@ -267,6 +267,22 @@ GNUNET_CONFIGURATION_get_value_number (const struct GNUNET_CONFIGURATION_Handle unsigned long long *number); +/** + * Get a configuration value that should be a floating point number. + * + * @param cfg configuration to inspect + * @param section section of interest + * @param option option of interest + * @param number where to store the floating value of the option + * @return #GNUNET_OK on success, #GNUNET_SYSERR on error + */ +int +GNUNET_CONFIGURATION_get_value_float (const struct GNUNET_CONFIGURATION_Handle + *cfg, const char *section, + const char *option, + float *number); + + /** * Get a configuration value that should be a relative time. * -- cgit v1.2.3