TRIP Routing Daemon
TRIP (RFC 3219) Location Server Implementation
Loading...
Searching...
No Matches
parser.h File Reference

Command parser. More...

#include <functions/manager.h>
#include <stdio.h>
Include dependency graph for parser.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  parser_state_t
 Parser state. More...
struct  parser_t
 Parser object. More...

Enumerations

enum  cmd_context_t { CTX_ROOT , CTX_CONFIG , CTX_PREFIXLIST , CTX_TRIP }
 Command context structure. More...

Functions

char * strip (char *s)
 Skip white characters.
parser_tparser_init (FILE *outf)
 Initialize parser state and output file.
int parser_parse_cmd (parser_t *parser, char *cmd)
 Parse single command.
int parser_parse_file (parser_t *parser, FILE *f)
 Parse file.

Detailed Description

Command parser.

Enumeration Type Documentation

◆ cmd_context_t

Command context structure.

Enumerator
CTX_ROOT 

Root context

CTX_CONFIG 

Config context

CTX_PREFIXLIST 

Prefix list context

CTX_TRIP 

TRIP routing context