llconf 0.0.2
cnfmodule Struct Reference

Information for registering a parser module. More...

#include <modules.h>

Data Fields

struct cnfmodulenext
 The next module in the registration list.
 
char * name
 The text name of this parser module.
 
char * default_file
 The file that this module operates on, if none is specified when the parser is instantiated.
 
struct cnfnode *(* parser )(struct cnfmodule *cm, FILE *fptr)
 The function to use to create an in-memory tree from the given stream.
 
int(* unparser )(struct cnfmodule *cm, FILE *fptr, struct cnfnode *cn_root)
 The function to use to write the in-memory tree to the given stream.
 
struct cnfnodeopt_root
 The default set of options for this parser.
 

Detailed Description

Information for registering a parser module.

Field Documentation

◆ default_file

char* cnfmodule::default_file

The file that this module operates on, if none is specified when the parser is instantiated.

◆ name

char* cnfmodule::name

The text name of this parser module.

◆ next

struct cnfmodule* cnfmodule::next

The next module in the registration list.

◆ opt_root

struct cnfnode* cnfmodule::opt_root

The default set of options for this parser.

◆ parser

struct cnfnode *(* cnfmodule::parser) (struct cnfmodule *cm, FILE *fptr)

The function to use to create an in-memory tree from the given stream.

◆ unparser

int(* cnfmodule::unparser) (struct cnfmodule *cm, FILE *fptr, struct cnfnode *cn_root)

The function to use to write the in-memory tree to the given stream.


The documentation for this struct was generated from the following file: