summaryrefslogtreecommitdiff
path: root/src/tokeniser/entities.h
blob: efd19879676e250ba968581df8ad8ea72db00593 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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