diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2008-11-09 17:54:43 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2008-11-09 17:54:43 +0000 |
commit | fe1b45b77687b0f9ab81f851e9eb2846f34e6765 (patch) | |
tree | 8f7d8fe4fe499a48e83c6468446b51c6cbec9942 /include/hubbub | |
parent | fd23949103aa8ec2c98ad3b209738617825e381d (diff) | |
download | libhubbub-fe1b45b77687b0f9ab81f851e9eb2846f34e6765.tar.gz libhubbub-fe1b45b77687b0f9ab81f851e9eb2846f34e6765.tar.bz2 |
Return errors from parser constructor/destructor. This changes the public API.
svn path=/trunk/hubbub/; revision=5666
Diffstat (limited to 'include/hubbub')
-rw-r--r-- | include/hubbub/parser.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/hubbub/parser.h b/include/hubbub/parser.h index 2e34b5e..d08d70e 100644 --- a/include/hubbub/parser.h +++ b/include/hubbub/parser.h @@ -56,10 +56,10 @@ typedef union hubbub_parser_optparams { } hubbub_parser_optparams; /* Create a hubbub parser */ -hubbub_parser *hubbub_parser_create(const char *enc, bool fix_enc, - hubbub_alloc alloc, void *pw); +hubbub_error hubbub_parser_create(const char *enc, bool fix_enc, + hubbub_alloc alloc, void *pw, hubbub_parser **parser); /* Destroy a hubbub parser */ -void hubbub_parser_destroy(hubbub_parser *parser); +hubbub_error hubbub_parser_destroy(hubbub_parser *parser); /* Configure a hubbub parser */ hubbub_error hubbub_parser_setopt(hubbub_parser *parser, |