Libecoli  0.11.3
Extensible COmmand LIne library
Typedefs | Functions
Dynamic node

A node built dynamically at parse time by a callback. More...

Typedefs

typedef struct ec_node *(* ec_node_dynamic_build_t) (struct ec_pnode *pstate, void *opaque)
 

Functions

struct ec_nodeec_node_dynamic (const char *id, ec_node_dynamic_build_t build, void *opaque)
 

Detailed Description

A node built dynamically at parse time by a callback.

Configuration Schema

No configuration schema.

Typedef Documentation

◆ ec_node_dynamic_build_t

typedef 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. The behavior of the node can depend on what is already parsed.

Definition at line 1 of file node_dynamic.h.

Function Documentation

◆ 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.