From 5e7f66b34826697537bcdcb60c81f56da956a32b Mon Sep 17 00:00:00 2001 From: Federico Angelilli Date: Sun, 8 Sep 2024 15:45:57 +0200 Subject: Add ram formatting --- src/config.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/config.c') diff --git a/src/config.c b/src/config.c index 38413f4..cde4af1 100644 --- a/src/config.c +++ b/src/config.c @@ -205,6 +205,10 @@ static config_status_t config_read_entry(const config_entry_t *entries, void *re "integer", "unsigned integer", "double float", + "boolean", + "color", + "enum", + "time", }; for (int i = 0; entries[i].key != NULL; i++) { @@ -447,6 +451,13 @@ skip_pair: free(value); } + if (block != NULL && scheme->validate != NULL) { + if (errors != 0) + log_trace("Skipped validation for block '%s'", section); + else + errors += !scheme->validate(block, scheme); + } + free(section); n_errors += errors; } while ((section = any_ini_stream_next_section(&ini)) != NULL); -- cgit v1.2.3