Loading...
Searching...
No Matches
node_once.h
/* SPDX-License-Identifier: BSD-3-Clause
* Copyright 2016, Olivier MATZ <zer0@droids-corp.org>
*/
#pragma once
#include <ecoli/node.h>
struct ec_node *ec_node_once(const char *id, struct ec_node *child);
int ec_node_once_set_child(struct ec_node *node, struct ec_node *child);
ec_node_once_set_child
int ec_node_once_set_child(struct ec_node *node, struct ec_node *child)
Set the child of a once node.
ec_node_once
struct ec_node * ec_node_once(const char *id, struct ec_node *child)
This node behaves like its child, but prevents it from being parsed more than once.
ec_node
struct ec_node * ec_node(const char *typename, const char *id)
Create a new node from its type name.