EC_CONFIG_SCHEMA_VALIDATE(3)
π EC_CONFIG_SCHEMA_VALIDATE π
okay bestie, welcome to the libecoli programmer's manual β this one's all about ec_config_schema_validate(3) and honestly? it's giving vibe check for your schema array. β¨
πΈ NAME πΈ
ec_config_schema_validate β validate a configuration schema array, fr fr. β
π¦ SYNOPSIS π¦
#include <ecoli/config.h>
int ec_config_schema_validate(
/*
* Pointer to the first element of the schema array. The array must be
* terminated by a sentinel entry {.type = EC_CONFIG_TYPE_NONE}.
*/
const struct ec_config_schema *schema
);
so you pass in a pointer to the first element of the schema array, and listen β the array must be terminated by a sentinel entry {.type = EC_CONFIG_TYPE_NONE}. no sentinel, no peace. don't skip it π
π STRUCTURES π
this is the structure that describes the format of a configuration value, bestie. iconic behavior.
this structure is used in a const array which is referenced by a struct ec_config. every single entry of that array represents a key/value storage of the configuration dictionary. one entry, one little storage slot, slay.
struct ec_config_schema {
enum flags;
};
π RETURN VALUE π
0β the schema is valid, we ate π-1β error, anderrnois set π
β SEE ALSO β
the whole friend group, no cap:
ec_config_schema_sub(3)ec_config_u64(3)ec_config_list_del(3)ec_config_dict(3)ec_config_count(3)ec_config_schema_dump(3)ec_config_i64(3)ec_config_list_next(3)ec_config_get_type(3)ec_config_dict_set(3)ec_config_list_first(3)ec_config_schema_type(3)ec_config_node(3)ec_config_list(3)ec_config_cmp(3)ec_node_config_node_list_to_table(3)ec_config_key_is_reserved(3)ec_config_string(3)ec_config_dict_get(3)ec_config_free(3)ec_node_config_node_list_from_vargs(3)ec_config_list_add(3)ec_config_schema_lookup(3)ec_config_validate(3)ec_config_dup(3)ec_config_dump(3)ec_config_dict_del(3)ec_config_bool(3)
π COPYRIGHT π
Copyright (C) 2010-2026 Olivier Matz, Robin Jarry.
ok that's the whole page, you're officially schema-validated. go be the main character of your own config array π«Ά
libecoli Β· 2026-06-11 β mwah, sending you the biggest π from the Libecoli Programmer's Manual, bye bestie!! πβ¨
π¦ where this page comes from
- fedora 44: libecoli-devel 0.11.7-1.fc44 Β· BSD-3-Clause AND LicenseRef-Fedora-Public-Domain
- fedora 44: libecoli-devel 0.11.7-1.fc44 Β· BSD-3-Clause AND LicenseRef-Fedora-Public-Domain
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms