8#ifndef hubbub_parser_h_
9#define hubbub_parser_h_
19#include <hubbub/errors.h>
hubbub_charset_source
Definition types.h:22
hubbub_content_model
Definition types.h:32
unsigned char uint8_t
Definition acefiex.h:161
size_t len
Definition initial.c:23
void * data
Definition kthread.h:30
hubbub_error
Definition errors.h:18
hubbub_error(* hubbub_token_handler)(const hubbub_token *token, void *pw)
Definition functypes.h:29
void(* hubbub_error_handler)(uint32_t line, uint32_t col, const char *message, void *pw)
Definition functypes.h:40
hubbub_error hubbub_parser_insert_chunk(hubbub_parser *parser, const uint8_t *data, size_t len)
Definition parser.c:218
const char * hubbub_parser_read_charset(hubbub_parser *parser, hubbub_charset_source *source)
Definition parser.c:305
hubbub_error hubbub_parser_destroy(hubbub_parser *parser)
Definition parser.c:102
hubbub_error hubbub_parser_parse_chunk(hubbub_parser *parser, const uint8_t *data, size_t len)
Definition parser.c:235
hubbub_error hubbub_parser_create(const char *enc, bool fix_enc, hubbub_parser **parser)
Definition parser.c:41
hubbub_parser_opttype
Definition parser.h:29
@ HUBBUB_PARSER_PAUSE
Definition parser.h:36
@ HUBBUB_PARSER_ENABLE_SCRIPTING
Definition parser.h:35
@ HUBBUB_PARSER_DOCUMENT_NODE
Definition parser.h:34
@ HUBBUB_PARSER_TREE_HANDLER
Definition parser.h:33
@ HUBBUB_PARSER_TOKEN_HANDLER
Definition parser.h:30
@ HUBBUB_PARSER_ERROR_HANDLER
Definition parser.h:31
@ HUBBUB_PARSER_CONTENT_MODEL
Definition parser.h:32
hubbub_error hubbub_parser_setopt(hubbub_parser *parser, hubbub_parser_opttype type, hubbub_parser_optparams *params)
Definition parser.c:126
hubbub_error hubbub_parser_completed(hubbub_parser *parser)
Definition parser.c:279
hubbub_error_handler handler
Definition parser.h:49
struct hubbub_parser_optparams::@865 content_model
bool enable_scripting
Definition parser.h:61
void * document_node
Definition parser.h:59
struct hubbub_parser_optparams::@863 token_handler
hubbub_token_handler handler
Definition parser.h:44
bool pause_parse
Definition parser.h:63
void * pw
Definition parser.h:45
hubbub_content_model model
Definition parser.h:54
struct hubbub_parser_optparams::@864 error_handler
hubbub_tree_handler * tree_handler
Definition parser.h:57