X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fconfigfile.h;h=59ea55428e43e9752a91c3c9e82675fc0d7ba91b;hb=d1a32e2c7c8b1f97e06505cd73d1c1b2f9e4a724;hp=e63a0ea047533257bde40be867bc0394060a884f;hpb=4dc9287f4de0283ae986444377075dcbdada2871;p=collectd.git diff --git a/src/configfile.h b/src/configfile.h index e63a0ea0..59ea5542 100644 --- a/src/configfile.h +++ b/src/configfile.h @@ -100,6 +100,9 @@ int cf_util_get_string_buffer (const oconfig_item_t *ci, char *buffer, /* Assures the config option is a number and returns it as an int. */ int cf_util_get_int (const oconfig_item_t *ci, int *ret_value); +/* Assures the config option is a number and returns it as a double. */ +int cf_util_get_double (const oconfig_item_t *ci, double *ret_value); + /* Assures the config option is a boolean and assignes it to `ret_bool'. * Otherwise, `ret_bool' is not changed and non-zero is returned. */ int cf_util_get_boolean (const oconfig_item_t *ci, _Bool *ret_bool);