Hubbub $Id$
treebuilder.h
Go to the documentation of this file.
1/*
2 * This file is part of Hubbub.
3 * Licensed under the MIT License,
4 * http://www.opensource.org/licenses/mit-license.php
5 * Copyright 2008 John-Mark Bell <jmb@netsurf-browser.org>
6 */
7
8#ifndef hubbub_treebuilder_treebuilder_h_
9#define hubbub_treebuilder_treebuilder_h_
10
11#include <stdbool.h>
12#include <inttypes.h>
13
14#include <hubbub/errors.h>
15#include <hubbub/functypes.h>
16#include <hubbub/tree.h>
17#include <hubbub/types.h>
18
19#include "tokeniser/tokeniser.h"
20
22
32
37 struct {
39 void *pw;
48
49/* Create a hubbub treebuilder */
51 hubbub_treebuilder **treebuilder);
52
53/* Destroy a hubbub treebuilder */
55
56/* Configure a hubbub treebuilder */
60
61#endif
62
hubbub_error
Definition: errors.h:18
void(* hubbub_error_handler)(uint32_t line, uint32_t col, const char *message, void *pw)
Type of parse error handling function.
Definition: functypes.h:40
Tokeniser data structure.
Definition: tokeniser.c:165
Hubbub tree handler.
Definition: tree.h:273
Treebuilder object.
Definition: internal.h:92
hubbub_treebuilder_opttype
Hubbub treebuilder option types.
Definition: treebuilder.h:26
@ HUBBUB_TREEBUILDER_DOCUMENT_NODE
Definition: treebuilder.h:29
@ HUBBUB_TREEBUILDER_ENABLE_SCRIPTING
Definition: treebuilder.h:30
@ HUBBUB_TREEBUILDER_TREE_HANDLER
Definition: treebuilder.h:28
@ HUBBUB_TREEBUILDER_ERROR_HANDLER
Definition: treebuilder.h:27
hubbub_error hubbub_treebuilder_create(hubbub_tokeniser *tokeniser, hubbub_treebuilder **treebuilder)
Create a hubbub treebuilder.
Definition: treebuilder.c:31
hubbub_error hubbub_treebuilder_setopt(hubbub_treebuilder *treebuilder, hubbub_treebuilder_opttype type, hubbub_treebuilder_optparams *params)
Configure a hubbub treebuilder.
Definition: treebuilder.c:169
union hubbub_treebuilder_optparams hubbub_treebuilder_optparams
Hubbub treebuilder option parameters.
hubbub_error hubbub_treebuilder_destroy(hubbub_treebuilder *treebuilder)
Destroy a hubbub treebuilder.
Definition: treebuilder.c:92
Hubbub treebuilder option parameters.
Definition: treebuilder.h:36
bool enable_scripting
Enable scripting.
Definition: treebuilder.h:46
hubbub_tree_handler * tree_handler
Tree handling callbacks.
Definition: treebuilder.h:42
void * document_node
The document node.
Definition: treebuilder.h:44
struct hubbub_treebuilder_optparams::@10 error_handler
Error handling callback.
void * pw
Definition: treebuilder.h:39
hubbub_error_handler handler
Definition: treebuilder.h:38