diff options
Diffstat (limited to 'src/tokeniser/entities.h')
-rw-r--r-- | src/tokeniser/entities.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/tokeniser/entities.h b/src/tokeniser/entities.h new file mode 100644 index 0000000..efd1987 --- /dev/null +++ b/src/tokeniser/entities.h @@ -0,0 +1,25 @@ +/* + * This file is part of Hubbub. + * Licensed under the MIT License, + * http://www.opensource.org/licenses/mit-license.php + * Copyright 2007 John-Mark Bell <jmb@netsurf-browser.org> + */ + +#ifndef hubbub_tokeniser_entities_h_ +#define hubbub_tokeniser_entities_h_ + +#include <inttypes.h> + +#include <hubbub/errors.h> +#include <hubbub/functypes.h> + +/* Create the entities dictionary */ +hubbub_error hubbub_entities_create(hubbub_alloc alloc, void *pw); +/* Destroy the entities dictionary */ +void hubbub_entities_destroy(hubbub_alloc alloc, void *pw); + +/* Step-wise search for an entity in the dictionary */ +hubbub_error hubbub_entities_search_step(uint8_t c, uint32_t *result, + void **context); + +#endif |