8 #ifndef hubbub_parser_h_
9 #define hubbub_parser_h_
80 const uint8_t *data,
size_t len);
97 const uint8_t *data,
size_t len);
struct hubbub_parser_optparams::@0 token_handler
Token handling callback.
hubbub_parser_opttype
Hubbub parser option types.
hubbub_error hubbub_parser_insert_chunk(hubbub_parser *parser, const uint8_t *data, size_t len)
Insert a chunk of data into a hubbub parser input stream.
void * document_node
Document node.
union hubbub_parser_optparams hubbub_parser_optparams
Hubbub parser option parameters.
hubbub_error hubbub_parser_setopt(hubbub_parser *parser, hubbub_parser_opttype type, hubbub_parser_optparams *params)
Configure a hubbub parser.
Hubbub parser option parameters.
hubbub_error hubbub_parser_completed(hubbub_parser *parser)
Inform the parser that the last chunk of data has been parsed.
hubbub_token_handler handler
hubbub_content_model model
hubbub_charset_source
Source of charset information, in order of importance A client-dictated charset will override all oth...
hubbub_error hubbub_parser_parse_chunk(hubbub_parser *parser, const uint8_t *data, size_t len)
Pass a chunk of data to a hubbub parser for parsing.
struct hubbub_parser_optparams::@1 error_handler
Error handling callback.
bool pause_parse
Pause parsing.
hubbub_error(* hubbub_token_handler)(const hubbub_token *token, void *pw)
Type of token handling function.
hubbub_error_handler handler
void(* hubbub_error_handler)(uint32_t line, uint32_t col, const char *message, void *pw)
Type of parse error handling function.
struct hubbub_parser_optparams::@2 content_model
Current content model.
hubbub_content_model
Content model flag.
const char * hubbub_parser_read_charset(hubbub_parser *parser, hubbub_charset_source *source)
Read the document charset.
hubbub_tree_handler * tree_handler
Tree handling callbacks.
bool enable_scripting
Whether to enable scripting.
hubbub_error hubbub_parser_destroy(hubbub_parser *parser)
Destroy a hubbub parser.
hubbub_error hubbub_parser_create(const char *enc, bool fix_enc, hubbub_parser **parser)
Create a hubbub parser.