diff options
author | Vincent Sanders <vince@kyllikki.org> | 2012-08-05 10:57:34 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2012-08-05 10:57:34 +0100 |
commit | 2759bec06573d9ac3c32ef2d310492edc8a1b103 (patch) | |
tree | 83f2f60fba3b78ddabe1cd25a6ee6bb51faf836b /bindings/hubbub/parser.h | |
parent | 6aedb99d8efddb2e3d7db18560ea671424ad8854 (diff) | |
download | libdom-2759bec06573d9ac3c32ef2d310492edc8a1b103.tar.gz libdom-2759bec06573d9ac3c32ef2d310492edc8a1b103.tar.bz2 |
Obtain the docuemnt object at parser creation time.
Remove the unecessary document retrival API
Diffstat (limited to 'bindings/hubbub/parser.h')
-rw-r--r-- | bindings/hubbub/parser.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/bindings/hubbub/parser.h b/bindings/hubbub/parser.h index 16b02a8..e4bd52a 100644 --- a/bindings/hubbub/parser.h +++ b/bindings/hubbub/parser.h @@ -53,9 +53,7 @@ typedef enum dom_hubbub_encoding_source { */ /* Create a Hubbub parser instance */ -dom_hubbub_parser *dom_hubbub_parser_create(const char *enc, bool fix_enc, - bool enable_script, dom_msg msg, - dom_script script, void *mctx); +dom_hubbub_parser *dom_hubbub_parser_create(const char *enc, bool fix_enc, bool enable_script, dom_document **document, dom_msg msg, dom_script script, void *mctx); /* Destroy a Hubbub parser instance */ void dom_hubbub_parser_destroy(dom_hubbub_parser *parser); @@ -70,9 +68,6 @@ dom_hubbub_error dom_hubbub_parser_insert_chunk(dom_hubbub_parser *parser, const /* Notify parser that datastream is empty */ dom_hubbub_error dom_hubbub_parser_completed(dom_hubbub_parser *parser); -/* Retrieve the created DOM Document */ -dom_document *dom_hubbub_parser_get_document(dom_hubbub_parser *parser); - /* Retrieve the document's encoding */ const char *dom_hubbub_parser_get_encoding(dom_hubbub_parser *parser, dom_hubbub_encoding_source *source); |