settings: Add settings_value_as_uint64() helper function

This commit is contained in:
Tobias Brunner
2015-11-11 15:39:49 +01:00
parent ee09094899
commit 8623ae9fc6
3 changed files with 58 additions and 0 deletions
+9
View File
@@ -50,6 +50,15 @@ bool settings_value_as_bool(char *value, bool def);
*/
int settings_value_as_int(char *value, int def);
/**
* Convert a string value returned by a key/value enumerator to an u_int64_t.
*
* @see settings_t.create_key_value_enumerator()
* @param value the string value
* @param def the default value, if value is NULL or invalid
*/
u_int64_t settings_value_as_uint64(char *value, u_int64_t def);
/**
* Convert a string value returned by a key/value enumerator to a double.
*