Go to the source code of this file.
|
typedef int | ng_parse_t(const struct ng_parse_type *type, const char *string, int *off, const u_char *start, u_char *buf, int *buflen) |
|
typedef int | ng_unparse_t(const struct ng_parse_type *type, const u_char *data, int *off, char *buf, int buflen) |
|
typedef int | ng_getDefault_t(const struct ng_parse_type *type, const u_char *start, u_char *buf, int *buflen) |
|
typedef int | ng_getAlign_t(const struct ng_parse_type *type) |
|
typedef int | ng_parse_array_getDefault_t(const struct ng_parse_type *type, int index, const u_char *start, u_char *buf, int *buflen) |
|
typedef int | ng_parse_array_getLength_t(const struct ng_parse_type *type, const u_char *start, const u_char *buf) |
|
|
int | ng_parse (const struct ng_parse_type *type, const char *string, int *off, u_char *buf, int *buflen) |
|
int | ng_unparse (const struct ng_parse_type *type, const u_char *data, char *buf, int buflen) |
|
int | ng_parse_getDefault (const struct ng_parse_type *type, u_char *buf, int *buflen) |
|
enum ng_parse_token | ng_parse_get_token (const char *s, int *startp, int *lenp) |
|
char * | ng_get_string_token (const char *s, int *startp, int *lenp, int *slenp) |
|
char * | ng_encode_string (const char *s, int slen) |
|
◆ ng_getAlign_t
◆ ng_getDefault_t
typedef int ng_getDefault_t(const struct ng_parse_type *type, const u_char *start, u_char *buf, int *buflen) |
◆ ng_parse_array_getDefault_t
typedef int ng_parse_array_getDefault_t(const struct ng_parse_type *type, int index, const u_char *start, u_char *buf, int *buflen) |
◆ ng_parse_array_getLength_t
typedef int ng_parse_array_getLength_t(const struct ng_parse_type *type, const u_char *start, const u_char *buf) |
◆ ng_parse_t
typedef int ng_parse_t(const struct ng_parse_type *type, const char *string, int *off, const u_char *start, u_char *buf, int *buflen) |
◆ ng_unparse_t
typedef int ng_unparse_t(const struct ng_parse_type *type, const u_char *data, int *off, char *buf, int buflen) |
◆ ng_parse_token
Enumerator |
---|
T_LBRACE | |
T_RBRACE | |
T_LBRACKET | |
T_RBRACKET | |
T_EQUALS | |
T_STRING | |
T_ERROR | |
T_WORD | |
T_EOF | |
Definition at line 479 of file ng_parse.h.
◆ ng_encode_string()
char * ng_encode_string |
( |
const char * |
s, |
|
|
int |
slen |
|
) |
| |
◆ ng_get_string_token()
char * ng_get_string_token |
( |
const char * |
s, |
|
|
int * |
startp, |
|
|
int * |
lenp, |
|
|
int * |
slenp |
|
) |
| |
◆ ng_parse()
int ng_parse |
( |
const struct ng_parse_type * |
type, |
|
|
const char * |
string, |
|
|
int * |
off, |
|
|
u_char * |
buf, |
|
|
int * |
buflen |
|
) |
| |
◆ ng_parse_get_token()
enum ng_parse_token ng_parse_get_token |
( |
const char * |
s, |
|
|
int * |
startp, |
|
|
int * |
lenp |
|
) |
| |
Definition at line 1682 of file ng_parse.c.
References M_NETGRAPH_PARSE, ng_get_string_token(), T_EOF, T_EQUALS, T_ERROR, T_LBRACE, T_LBRACKET, T_RBRACE, T_RBRACKET, T_STRING, and T_WORD.
Referenced by ng_ksocket_sockaddr_parse(), ng_parse_composite(), and ng_parse_skip_value().
◆ ng_parse_getDefault()
int ng_parse_getDefault |
( |
const struct ng_parse_type * |
type, |
|
|
u_char * |
buf, |
|
|
int * |
buflen |
|
) |
| |
◆ ng_unparse()
int ng_unparse |
( |
const struct ng_parse_type * |
type, |
|
|
const u_char * |
data, |
|
|
char * |
buf, |
|
|
int |
buflen |
|
) |
| |
◆ ng_parse_array_type
◆ ng_parse_bytearray_type
◆ ng_parse_cmdbuf_type
◆ ng_parse_enaddr_type
◆ ng_parse_fixedarray_type
◆ ng_parse_fixedstring_type
◆ ng_parse_hint16_type
◆ ng_parse_hint32_type
◆ ng_parse_hint64_type
◆ ng_parse_hint8_type
◆ ng_parse_hookbuf_type
◆ ng_parse_int16_type
◆ ng_parse_int32_type
◆ ng_parse_int64_type
◆ ng_parse_int8_type
◆ ng_parse_ipaddr_type
◆ ng_parse_ng_mesg_type
◆ ng_parse_nodebuf_type
◆ ng_parse_pathbuf_type
◆ ng_parse_sizedstring_type
◆ ng_parse_string_type
◆ ng_parse_struct_type
◆ ng_parse_typebuf_type
◆ ng_parse_uint16_type
◆ ng_parse_uint32_type
◆ ng_parse_uint64_type
◆ ng_parse_uint8_type