X-Git-Url: http://git.droids-corp.org/?p=protos%2Flibecoli.git;a=blobdiff_plain;f=lib%2Fecoli_node.h;h=63178f7ad2ebcff67e923e26b396f854635ee6a9;hp=103577898f03a5c3fe3a9fb145c83f779f883cb6;hb=6a40004beef80306d5f7dcea9febec948adf6d50;hpb=16d70dde809c6c2f8d9b912d67d0932d370fd7b3 diff --git a/lib/ecoli_node.h b/lib/ecoli_node.h index 1035778..63178f7 100644 --- a/lib/ecoli_node.h +++ b/lib/ecoli_node.h @@ -149,10 +149,14 @@ struct ec_node *ec_node_clone(struct ec_node *node); void ec_node_free(struct ec_node *node); /* set configuration of a node - * after a call to this function, the config is owned by the node and - * must not be used by the caller */ + * after a call to this function, the config is + * owned by the node and must not be used by the caller + * on error, the config is freed. */ int ec_node_set_config(struct ec_node *node, struct ec_config *config); +/* get the current node configuration. Return NULL if no configuration. */ +const struct ec_config *ec_node_get_config(struct ec_node *node); + size_t ec_node_get_children_count(const struct ec_node *node); struct ec_node * ec_node_get_child(const struct ec_node *node, size_t i);