parser.h File Reference

Go to the source code of this file.

Data Structures

struct  parser_s

Typedefs

typedef struct parser_s parser_t
typedef int(* parser_cb_html_t )(parser_t *, void *, const char *, size_t)
typedef int(* parser_cb_code_t )(parser_t *, int, void *, const char *, size_t)

Functions

int parser_create (parser_t **)
int parser_free (parser_t *)
int parser_run (parser_t *)
int parser_reset (parser_t *)
void parser_set_io (parser_t *, io_t *, io_t *)
void parser_set_cb_code (parser_t *, parser_cb_code_t)
void parser_set_cb_html (parser_t *, parser_cb_html_t)
void parser_set_cb_arg (parser_t *, void *)
void * parser_get_cb_arg (parser_t *p)

Typedef Documentation

typedef int(* parser_cb_code_t)(parser_t *, int, void *, const char *, size_t)

Definition at line 37 of file parser.h.

typedef int(* parser_cb_html_t)(parser_t *, void *, const char *, size_t)

Definition at line 36 of file parser.h.

typedef struct parser_s parser_t

Definition at line 24 of file parser.h.


Function Documentation

int parser_create ( parser_t **   ) 

Definition at line 252 of file parser.c.

int parser_free ( parser_t  ) 

Definition at line 235 of file parser.c.

void* parser_get_cb_arg ( parser_t p  ) 

Definition at line 216 of file parser.c.

int parser_reset ( parser_t  ) 

Definition at line 241 of file parser.c.

int parser_run ( parser_t  ) 

Definition at line 74 of file parser.c.

void parser_set_cb_arg ( parser_t ,
void *   
)

Definition at line 222 of file parser.c.

void parser_set_cb_code ( parser_t ,
parser_cb_code_t   
)

Definition at line 204 of file parser.c.

void parser_set_cb_html ( parser_t ,
parser_cb_html_t   
)

Definition at line 210 of file parser.c.

void parser_set_io ( parser_t ,
io_t ,
io_t  
)

Definition at line 228 of file parser.c.