EC_CONFIG_VALIDATE(3)
π EC_CONFIG_VALIDATE(3) π
okay bestie, welcome to Libecoli Programmer's Manual β this one's called ec_config_validate, and yes she's a section 3 girlie. let's get into it β¨
πΈ NAME πΈ
ec_config_validate β validate a configuration, periodt. π
π¦ SYNOPSIS π¦
#include <ecoli/config.h>
int ec_config_validate(
const struct ec_config *dict, /* A hash table configuration to 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 like, you hand her a config (dict) and a schema array (schema), and she checks the vibe. β
π¨ real talk: thatschemaarray must be terminated by a sentinel entry, and that sentinel hastype == EC_CONFIG_TYPE_NONE. no sentinel, no party. don't skip it, bestie, fr fr.
π STRUCTURES π
β¨ the schema structure β¨
Structure describing the format of a configuration value.
This structure is used in a const array which is referenced by a struct ec_config. Each entry of the array represents a key/value storage of the configuration dictionary.
struct ec_config_schema {
enum flags;
};
β¨ the config structure β¨
Structure storing the configuration data.
struct ec_config {
union ec_config::@165033305204240054252215261010262276266146032272 @204272232073016241350260013126061051223010235320;
};
look at that union name, it's giving main character energy π«Ά (yes, copy it exactly, don't you dare retype it by hand π)
π RETURN VALUE π
0β success, slay, we ate π-1β error, anderrnogets set. not iconic but informative. π
π 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_validate(3)ec_config_schema_lookup(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.
and that's the whole page, bestie!! this was libecoli, dated 2026-06-11, filed under EC_CONFIG_VALIDATE(3) β go validate something cute, ily, bye π§πβ¨
π¦ 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