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, and errno is set 😭

⭐ SEE ALSO ⭐

the whole friend group, no cap:


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