Loading...
Searching...
No Matches
node_option.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_option(const char *id, struct ec_node *node);
int ec_node_option_set_child(struct ec_node *gen_node, struct ec_node *child);
ec_node_option
struct ec_node * ec_node_option(const char *id, struct ec_node *node)
Create an option node that makes its child optional.
ec_node_option_set_child
int ec_node_option_set_child(struct ec_node *gen_node, struct ec_node *child)
Set the child of an option node.
ec_node
struct ec_node * ec_node(const char *typename, const char *id)
Create a new node from its type name.