From fe1b45b77687b0f9ab81f851e9eb2846f34e6765 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Sun, 9 Nov 2008 17:54:43 +0000 Subject: Return errors from parser constructor/destructor. This changes the public API. svn path=/trunk/hubbub/; revision=5666 --- include/hubbub/parser.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include/hubbub/parser.h') 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, -- cgit v1.2.3