ec_config_schema_validate - Man Page

Validate a configuration schema array.

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
);

Structures

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;
};

Return Value

0 if the schema is valid, or -1 on error (errno is set).

See Also

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)

Referenced By

ec_config_bool(3), ec_config_cmp(3), ec_config_count(3), ec_config_dict(3), ec_config_dict_del(3), ec_config_dict_get(3), ec_config_dict_set(3), ec_config_dump(3), ec_config_dup(3), ec_config_free(3), ec_config_get_type(3), ec_config_i64(3), ec_config_key_is_reserved(3), ec_config_list(3), ec_config_list_add(3), ec_config_list_del(3), ec_config_list_first(3), ec_config_list_next(3), ec_config_node(3), ec_config_schema_dump(3), ec_config_schema_lookup(3), ec_config_schema_sub(3), ec_config_schema_type(3), ec_config_string(3), ec_config_u64(3), ec_config_validate(3), ec_node_config_node_list_from_vargs(3), ec_node_config_node_list_to_table(3).

2026-06-11 Libecoli Programmer's Manual