aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_configuration_lib.h
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2014-05-14 08:09:42 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2014-05-14 08:09:42 +0000
commit62b5f9d7d649be845774ed4d876deb586f538c74 (patch)
tree1869ac86111aab6ad27edbc521222d94c387ffa1 /src/include/gnunet_configuration_lib.h
parent745109bb6a59a312e118c3242ce4ed861566fe79 (diff)
downloadgnunet-62b5f9d7d649be845774ed4d876deb586f538c74.tar.gz
gnunet-62b5f9d7d649be845774ed4d876deb586f538c74.zip
adding function to read float from cfg
Diffstat (limited to 'src/include/gnunet_configuration_lib.h')
-rw-r--r--src/include/gnunet_configuration_lib.h16
1 files changed, 16 insertions, 0 deletions
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
@@ -268,6 +268,22 @@ GNUNET_CONFIGURATION_get_value_number (const struct GNUNET_CONFIGURATION_Handle
268 268
269 269
270/** 270/**
271 * Get a configuration value that should be a floating point number.
272 *
273 * @param cfg configuration to inspect
274 * @param section section of interest
275 * @param option option of interest
276 * @param number where to store the floating value of the option
277 * @return #GNUNET_OK on success, #GNUNET_SYSERR on error
278 */
279int
280GNUNET_CONFIGURATION_get_value_float (const struct GNUNET_CONFIGURATION_Handle
281 *cfg, const char *section,
282 const char *option,
283 float *number);
284
285
286/**
271 * Get a configuration value that should be a relative time. 287 * Get a configuration value that should be a relative time.
272 * 288 *
273 * @param cfg configuration to inspect 289 * @param cfg configuration to inspect