ec_node_config_node_list_to_table - Man Page

Build a node table from a node list in an ec_config.

Synopsis

#include <ecoli/node_helper.h>

struct ec_node ** ec_node_config_node_list_to_table(
    /*
     * The configuration (type must be a list of nodes). If it is NULL, an
     * error is returned.
     */
    const struct ec_config   *config,
    /*
     * The length of the allocated table on success, or 0 on error.
     */
    size_t                   *len
);

Description

The function takes a node configuration as parameter, which must be a node list. From it, a node table is built. A reference is taken for each node.

On error, no reference is taken.

Structures

Structure storing the configuration data.



struct ec_config {


    union ec_config::@165033305204240054252215261010262276266146032272  @204272232073016241350260013126061051223010235320;
};

Return Value

The allocated node table, that must be freed by the caller: each entry must be freed with ec_node_free() and the table with free(). On error, NULL is returned and 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_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_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_schema_validate(3), ec_config_string(3), ec_config_u64(3), ec_config_validate(3), ec_node_config_node_list_from_vargs(3).

2026-06-11 Libecoli Programmer's Manual