diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2013-12-14 23:15:34 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2013-12-14 23:15:34 +0000 |
commit | 528795a5daf767532a42b492db29deeadebcb249 (patch) | |
tree | 06b6fba37d2a740341139131cfbd47eb0b59ab7f /include | |
parent | d509919a3bc507f3898e2166978462badbaab599 (diff) | |
download | libhubbub-528795a5daf767532a42b492db29deeadebcb249.tar.gz libhubbub-528795a5daf767532a42b492db29deeadebcb249.tar.bz2 |
Remove client allocation function and update for new lpu API.
Diffstat (limited to 'include')
-rw-r--r-- | include/hubbub/functypes.h | 12 | ||||
-rw-r--r-- | include/hubbub/parser.h | 2 |
2 files changed, 1 insertions, 13 deletions
diff --git a/include/hubbub/functypes.h b/include/hubbub/functypes.h index 1b65e32..e7cbe6e 100644 --- a/include/hubbub/functypes.h +++ b/include/hubbub/functypes.h @@ -20,18 +20,6 @@ extern "C" #include <hubbub/types.h> /** - * Type of allocation function for hubbub - * - * The semantics of this function are the same as for realloc(). - * - * \param ptr Pointer to object to reallocate, or NULL for a new allocation - * \param size Required length in bytes, or zero to free ::ptr - * \param pw Pointer to client data - * \return Pointer to allocated object, or NULL on failure - */ -typedef void *(*hubbub_allocator_fn)(void *ptr, size_t size, void *pw); - -/** * Type of token handling function * * \param token Pointer to token to handle diff --git a/include/hubbub/parser.h b/include/hubbub/parser.h index cd5d6b5..bdc5e20 100644 --- a/include/hubbub/parser.h +++ b/include/hubbub/parser.h @@ -65,7 +65,7 @@ typedef union hubbub_parser_optparams { /* Create a hubbub parser */ hubbub_error hubbub_parser_create(const char *enc, bool fix_enc, - hubbub_allocator_fn alloc, void *pw, hubbub_parser **parser); + hubbub_parser **parser); /* Destroy a hubbub parser */ hubbub_error hubbub_parser_destroy(hubbub_parser *parser); |