diff options
author | Vincent Sanders <vince@netsurf-browser.org> | 2012-12-06 19:39:50 +0000 |
---|---|---|
committer | Vincent Sanders <vince@netsurf-browser.org> | 2012-12-06 19:39:50 +0000 |
commit | 5267816fc0f9ee37791629896eddf92044232ef8 (patch) | |
tree | 985347e424af102a9a2244fd9edc198e367499aa | |
parent | 64f734f9144b08d93e206c189336bdf61a65d88c (diff) | |
download | libdom-5267816fc0f9ee37791629896eddf92044232ef8.tar.gz libdom-5267816fc0f9ee37791629896eddf92044232ef8.tar.bz2 |
fix example for new parameter setup
-rw-r--r-- | examples/dom-structure-dump.c | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/examples/dom-structure-dump.c b/examples/dom-structure-dump.c index 833bbe1..4ce7670 100644 --- a/examples/dom-structure-dump.c +++ b/examples/dom-structure-dump.c @@ -60,13 +60,21 @@ dom_document *create_doc_dom_from_file(char *file) FILE *handle; int chunk_length; dom_hubbub_error error; + dom_hubbub_parser_params params; dom_document *doc; unsigned char buffer[buffer_size]; + params.enc = NULL; + params.fix_enc = true; + params.enable_script = false; + params.msg = NULL; + params.script = NULL; + params.ctx = NULL; + params.daf = NULL; + /* Create Hubbub parser */ - parser = dom_hubbub_parser_create(NULL, true, false, NULL, NULL, - NULL, &doc); - if (parser == NULL) { + error = dom_hubbub_parser_create(¶ms, &parser, &doc); + if (error != DOM_HUBBUB_OK) { printf("Can't create Hubbub Parser\n"); return NULL; } |