Loading...
Searching...
No Matches
node_many.h
/* SPDX-License-Identifier: BSD-3-Clause
* Copyright 2016, Olivier MATZ <zer0@droids-corp.org>
*/
#pragma once
struct ec_node *
ec_node_many(const char *id, struct ec_node *child, unsigned int min, unsigned int max);
int ec_node_many_set_params(
struct ec_node *gen_node,
struct ec_node *child,
unsigned int min,
unsigned int max
);
ec_node_many
struct ec_node * ec_node_many(const char *id, struct ec_node *child, unsigned int min, unsigned int max)
Create a many node that matches its child multiple times.
ec_node_many_set_params
int ec_node_many_set_params(struct ec_node *gen_node, struct ec_node *child, unsigned int min, unsigned int max)
Set the parameters of a many node.
ec_node
struct ec_node * ec_node(const char *typename, const char *id)
Create a new node from its type name.