Improve configuration file parsing and error detection

- enable provision of various boolean values
- improve enforcement of minimum values for integers
This commit is contained in:
Ian Barwick
2017-04-21 13:12:28 +09:00
parent 0b0a0c69fc
commit 073afbce54
2 changed files with 109 additions and 61 deletions

View File

@@ -150,6 +150,10 @@ void item_list_append(ItemList *item_list, char *error_message);
int repmgr_atoi(const char *s,
const char *config_item,
ItemList *error_list,
bool allow_negative);
int minval);
bool parse_bool(const char *s,
const char *config_item,
ItemList *error_list);
#endif