From 5a0d96027b949a0c1b0b25e8553a78e2a8957c48 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Thu, 6 Dec 2012 16:16:01 +0000 Subject: make the hubbub binding creation take a parameter struct and return standard error codes --- test/testutils/load.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'test/testutils/load.c') diff --git a/test/testutils/load.c b/test/testutils/load.c index 2c93fc0..da22870 100644 --- a/test/testutils/load.c +++ b/test/testutils/load.c @@ -103,11 +103,19 @@ dom_document *load_html(const char *file, bool willBeModified) dom_hubbub_error error; dom_document *ret; uint8_t buffer[1024]; + dom_hubbub_parser_params params; UNUSED(willBeModified); - parser = dom_hubbub_parser_create(NULL, true, false, mymsg, NULL, NULL, &ret); - if (parser == NULL) { + params.enc = NULL; + params.fix_enc = true; + params.enable_script = false; + params.msg = mymsg; + params.script = NULL; + params.ctx = NULL; + + error = dom_hubbub_parser_create(¶ms, &parser, &ret); + if (error != DOM_HUBBUB_OK) { fprintf(stderr, "Can't create Hubbub Parser\n"); return NULL; } -- cgit v1.2.3