FD.io VPP  v18.01-8-g0eacf49
Vector Packet Processing
parse.h File Reference
+ Include dependency graph for parse.h:

Go to the source code of this file.

Data Structures

struct  vlib_parse_item_t
 
struct  vlib_parse_graph_t
 
struct  vlib_parse_type
 
struct  parse_registration_t
 
struct  vlib_parse_main
 

Macros

#define foreach_parse_match_type
 
#define PARSE_INIT(x, s, e)
 
#define PARSE_TYPE_INIT(n, m, c, f)
 

Typedefs

typedef vlib_parse_match_tvlib_parse_match_function_t) (struct vlib_parse_main *, struct vlib_parse_type *, vlib_lex_token_t *, vlib_parse_value_t *)
 
typedef void( vlib_parse_value_cleanup_function_t) (vlib_parse_value_t *)
 
typedef struct vlib_parse_type vlib_parse_type_t
 
typedef struct vlib_parse_main vlib_parse_main_t
 
typedef vlib_parse_match_tvlib_parse_eval_function_t) (vlib_parse_main_t *, vlib_parse_item_t *, vlib_parse_value_t *)
 

Enumerations

enum  vlib_parse_match_t { foreach_parse_match_type }
 

Functions

vlib_parse_match_t vlib_parse_eval (u8 *input)
 

Variables

vlib_parse_main_t vlib_parse_main
 
format_function_t format_vlib_parse_value
 
vlib_parse_match_function_t rule_match
 
vlib_parse_match_function_t eof_match
 
vlib_parse_match_function_t word_match
 
vlib_parse_match_function_t number_match
 

Macro Definition Documentation

#define foreach_parse_match_type
Value:
_(MATCH_DONE) \
_(MATCH_RULE) \
_(MATCH_FAIL) \
_(MATCH_FULL) \
_(MATCH_VALUE) \
_(MATCH_PARTIAL) \
_(MATCH_AMBIGUOUS) \
_(MATCH_EVAL_FAIL)

Definition at line 75 of file parse.h.

#define PARSE_INIT (   x,
  s,
 
)
Value:
static _PARSE_REGISTRATION_DATA(x) = { \
.initializer = s, \
.eof_match = e, \
};

Definition at line 195 of file parse.h.

#define PARSE_TYPE_INIT (   n,
  m,
  c,
 
)
Value:
static _PARSE_TYPE_REGISTRATION_DATA(n) = { \
.name = #n, \
.match_function = m, \
.value_cleanup_function = c, \
.format_value = f, \
};
svmdb_client_t * c

Definition at line 205 of file parse.h.

Typedef Documentation

typedef vlib_parse_match_t( vlib_parse_eval_function_t) (vlib_parse_main_t *, vlib_parse_item_t *, vlib_parse_value_t *)

Definition at line 181 of file parse.h.

typedef vlib_parse_match_t( vlib_parse_match_function_t) (struct vlib_parse_main *, struct vlib_parse_type *, vlib_lex_token_t *, vlib_parse_value_t *)

Definition at line 97 of file parse.h.

typedef void( vlib_parse_value_cleanup_function_t) (vlib_parse_value_t *)

Definition at line 99 of file parse.h.

Enumeration Type Documentation

Enumerator
foreach_parse_match_type 

Definition at line 85 of file parse.h.

Function Documentation

vlib_parse_match_t vlib_parse_eval ( u8 input)

+ Here is the caller graph for this function:

Variable Documentation

Definition at line 189 of file parse.h.

format_function_t format_vlib_parse_value

Definition at line 186 of file parse.h.

Definition at line 189 of file parse.h.

Definition at line 189 of file parse.h.

Definition at line 177 of file parse.h.

Definition at line 189 of file parse.h.