settings: Add settings_value_as_uint64() helper function
This commit is contained in:
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user