|
Libecoli 0.11.6
Extensible COmmand LIne library
|
A node that matches one of its child nodes. More...
Macros | |
| #define | EC_NODE_OR(args...) |
| Create a new "or" node from an arbitrary list of child nodes. | |
Functions | |
| struct ec_node * | ec_node_or (const char *id) |
| Create an empty "or" node. | |
| int | ec_node_or_add (struct ec_node *node, struct ec_node *child) |
| Add a child to an "or" node. | |
A node that matches one of its child nodes.
Configuration Schema
| #define EC_NODE_OR | ( | args... | ) |
Create a new "or" node from an arbitrary list of child nodes.
All nodes given in the list will be freed when freeing this one, or immediately on error.
Add a child to an "or" node.
The child is consumed and will be freed when the parent is freed, or immediately on error.