Libecoli 0.5.0
Extensible COmmand LIne library
 
Loading...
Searching...
No Matches
ecoli_node_or.h
1/* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright 2016, Olivier MATZ <zer0@droids-corp.org>
3 */
4
9
10#ifndef ECOLI_NODE_OR_
11#define ECOLI_NODE_OR_
12
13#include <ecoli_node.h>
14#include <ecoli_utils.h>
15
20#define EC_NODE_OR(args...) __ec_node_or(args, EC_VA_END)
21
26struct ec_node *__ec_node_or(const char *id, ...);
27
31struct ec_node *ec_node_or(const char *id);
32
36int ec_node_or_add(struct ec_node *node, struct ec_node *child);
37
38#endif
39
struct ec_node * ec_node(const char *typename, const char *id)
int ec_node_or_add(struct ec_node *node, struct ec_node *child)
struct ec_node * ec_node_or(const char *id)