Libecoli  0.11.3
Extensible COmmand LIne library
node_seq.h
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright 2016, Olivier MATZ <zer0@droids-corp.org>
3  */
4 
13 #pragma once
14 
15 #include <ecoli/node.h>
16 
29 #define EC_NODE_SEQ(args...) __ec_node_seq(args, EC_VA_END)
30 
31 /* list must be terminated with EC_VA_END */
32 /* all nodes given in the list will be freed when freeing this one */
33 /* avoid using this function directly, prefer the macro EC_NODE_SEQ() or
34  * ec_node_seq() + ec_node_seq_add() */
35 struct ec_node *__ec_node_seq(const char *id, ...);
36 
47 struct ec_node *ec_node_seq(const char *id);
48 
60 int ec_node_seq_add(struct ec_node *node, struct ec_node *child);
61 
struct ec_node * ec_node_seq(const char *id)
int ec_node_seq_add(struct ec_node *node, struct ec_node *child)
struct ec_node * ec_node(const char *typename, const char *id)