EC_CONFIG_SCHEMA_LOOKUP(3)
π EC_CONFIG_SCHEMA_LOOKUP(3) π
Libecoli Programmer's Manual β¨ (yes bestie, we're in the programmer's manual, get comfy)
β¨ NAME β¨
ec_config_schema_lookup β find a schema entry that matches the key π
πΈ SYNOPSIS πΈ
okay so first you gotta include the header, no cap:
#include <ecoli/config.h>
then boom, here's the function:
const struct ec_config_schema * ec_config_schema_lookup(
/*
* 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,
const char *key /* Schema key name. */
);
lowkey important: that first arg is a pointer to the first element of the schema array, and the array must be terminated by a sentinel entry {.type == EC_CONFIG_TYPE_NONE}. don't forget the sentinel or it's giving chaos π
π¦ DESCRIPTION π¦
So basically πβοΈ this one browses the schema array and looks up the given key. That's it. That's the whole job. It's the search bar of your config schema, fr fr. β¨
π STRUCTURES π
struct ec_config_schema
This structure is the moment. π It describes the format of a configuration value.
Here's the vibe: 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. iconic.
struct ec_config_schema {
enum flags;
};
π RETURN VALUE π
- If it matches a key, you get the schema entry back π«Ά
- If not found, you get
NULLπ (not found era, we've all been there)
π SEE ALSO π
the whole friend group showed up, bestie:
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_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.
and that's the whole page, bestie!! π₯³ this little number lives in libecoli, version 2026-06-11 β yes it's giving vintage-but-fresh, and it ate. go look up some keys, you got this. π β¨π¦
π¦ 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