ec_node_set_config - Man Page

Set node configuration.

Synopsis

#include <ecoli/node.h>

int ec_node_set_config(
    struct ec_node     *node,    /* The grammar node to configure. */
    struct ec_config   *config   /* The configuration to apply on the node. */
);

Description

For a node that supports generic configuration, set its configuration.

After a call to this function, the config is owned by the node and must not be used by the caller anymore.

Structures

Structure storing the configuration data.



struct ec_config {


    union ec_config::@165033305204240054252215261010262276266146032272  @204272232073016241350260013126061051223010235320;
};

Return Value

0 on success, or a negative value on error (in this case the config passed as parameter is freed).

See Also

ec_node_check_type(3), ec_node_iter(3), ec_node_attrs(3), ec_node_find(3), ec_node_type_name(3), ec_node_free(3), ec_node_id(3), ec_node_type_dump(3), ec_node_get_config(3), ec_node_schema_dump(3), ec_node_priv(3), ec_node_type_lookup(3), ec_node_clone(3), ec_node_dump(3), ec_node_desc(3), ec_node_iter_free(3), ec_node_iter_get_parent(3), ec_node_from_type(3), ec_node_type(3), ec_node_iter_next(3), ec_node_type_schema(3), ec_node(3), ec_node_get_children_count(3), ec_node_get_type_name(3), ec_node_type_register(3), ec_node_iter_get_node(3), ec_node_get_child(3)

Referenced By

ec_node(3), ec_node_attrs(3), ec_node_check_type(3), ec_node_clone(3), ec_node_desc(3), ec_node_dump(3), ec_node_find(3), ec_node_free(3), ec_node_from_type(3), ec_node_get_child(3), ec_node_get_children_count(3), ec_node_get_config(3), ec_node_get_type_name(3), ec_node_id(3), ec_node_iter(3), ec_node_iter_free(3), ec_node_iter_get_node(3), ec_node_iter_get_parent(3), ec_node_iter_next(3), ec_node_priv(3), ec_node_schema_dump(3), ec_node_type(3), ec_node_type_dump(3), ec_node_type_lookup(3), ec_node_type_name(3), ec_node_type_register(3), ec_node_type_schema(3).

2026-06-11 Libecoli Programmer's Manual