add ec_node_bypass
[protos/libecoli.git] / include / ecoli_node_bypass.h
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright 2019, Olivier MATZ <zer0@droids-corp.org>
3  */
4
5 /**
6  * A node that does nothing else than calling the child node.
7  * It can be helpful to build loops in a node graph.
8  */
9
10 #ifndef ECOLI_NODE_BYPASS_
11 #define ECOLI_NODE_BYPASS_
12
13 #include <ecoli_node.h>
14
15 struct ec_node *ec_node_bypass(const char *id, struct ec_node *node);
16 int ec_node_bypass_set_child(struct ec_node *gen_node, struct ec_node *child);
17
18 #endif