Loading...
Searching...
No Matches
node_dynamic.h
/* SPDX-License-Identifier: BSD-3-Clause
* Copyright 2017, Olivier MATZ <zer0@droids-corp.org>
*/
#pragma once
struct ec_node;
struct ec_pnode;
typedef struct ec_node *(*ec_node_dynamic_build_t)(struct ec_pnode *pstate, void *opaque);
struct ec_node *ec_node_dynamic(const char *id, ec_node_dynamic_build_t build, void *opaque);
ec_node_dynamic_build_t
struct ec_node *(* ec_node_dynamic_build_t)(struct ec_pnode *pstate, void *opaque)
Callback invoked by parse() or complete() to build the dynamic node.
Definition node_dynamic.h:20
ec_node_dynamic
struct ec_node * ec_node_dynamic(const char *id, ec_node_dynamic_build_t build, void *opaque)
Dynamic node where parsing/validation is done in a user-provided callback.
ec_node
struct ec_node * ec_node(const char *typename, const char *id)
Create a new node from its type name.
ec_pnode
struct ec_pnode * ec_pnode(const struct ec_node *node)
Create an empty parsing tree.