return ret;
}
-static bool
-settings_parser_check_info(const struct setting_parser_info *info, pool_t pool,
- void *set, const char **error_r)
+bool settings_check(const struct setting_parser_info *info, pool_t pool,
+ void *set, const char **error_r)
{
const struct setting_define *def;
const ARRAY_TYPE(void_array) *val;
children = array_get(val, &count);
for (i = 0; i < count; i++) {
- if (!settings_parser_check_info(def->list_info, pool,
- children[i], error_r))
+ if (!settings_check(def->list_info, pool,
+ children[i], error_r))
return FALSE;
}
}
unsigned int i;
for (i = 0; i < ctx->root_count; i++) {
- if (!settings_parser_check_info(ctx->roots[i].info, pool,
- ctx->roots[i].set_struct,
- error_r))
- return FALSE;
+ if (!settings_check(ctx->roots[i].info, pool,
+ ctx->roots[i].set_struct, error_r))
+ return FALSE;
}
return TRUE;
}
/* Call all check_func()s to see if currently parsed settings are valid. */
bool settings_parser_check(struct setting_parser_context *ctx, pool_t pool,
const char **error_r);
+bool settings_check(const struct setting_parser_info *info, pool_t pool,
+ void *set, const char **error_r);
/* While parsing values, specifies if STR_VARS strings are already expanded. */
void settings_parse_set_expanded(struct setting_parser_context *ctx,