Libecoli 0.11.6
Extensible COmmand LIne library
Loading...
Searching...
No Matches
node_bypass.h
1/* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright 2019, Olivier MATZ <zer0@droids-corp.org>
3 */
4
12
13#pragma once
14
15#include <ecoli/node.h>
16
21struct ec_node *ec_node_bypass(const char *id, struct ec_node *node);
22
26int ec_node_bypass_set_child(struct ec_node *gen_node, struct ec_node *child);
27
int ec_node_bypass_set_child(struct ec_node *gen_node, struct ec_node *child)
Attach a child to a bypass node.
struct ec_node * ec_node_bypass(const char *id, struct ec_node *node)
A node that does nothing other than calling the child node.
struct ec_node * ec_node(const char *typename, const char *id)
Create a new node from its type name.