From 69f0aa360cb2b603ce1f7434312c62a24b7693f9 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Mon, 6 Dec 2010 23:38:53 +0000 Subject: Provide mechanism for binding/client to define the features a document object should support. Utilise this to decide whether to create a raw Document or an HTMLDocument instance. Disable the above decision, as the HTMLDocument implementation is garbage svn path=/trunk/libdom/; revision=11025 --- src/html/html_document.c | 4 ++-- src/html/html_document.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/html') diff --git a/src/html/html_document.c b/src/html/html_document.c index d62714e..a2845aa 100644 --- a/src/html/html_document.c +++ b/src/html/html_document.c @@ -15,7 +15,7 @@ /* Create a HTMLDocument */ dom_exception dom_html_document_create(dom_alloc alloc, void *pw, dom_msg msg, void *msg_pw, - dom_events_default_action_fetcher daf, dom_ui_handler ui, + dom_events_default_action_fetcher daf, dom_ui_handler *ui, dom_parser_type pt, dom_html_document **doc) { assert(alloc != NULL); @@ -30,7 +30,7 @@ dom_exception dom_html_document_create(dom_alloc alloc, void *pw, dom_msg msg, /* Initialise a HTMLDocument */ dom_exception _dom_html_document_initialise(dom_html_document *doc, dom_alloc alloc, void *pw, dom_msg msg, void *msg_pw, - dom_events_default_action_fetcher daf, dom_ui_handler ui, + dom_events_default_action_fetcher daf, dom_ui_handler *ui, dom_parser_type pt) { UNUSED(doc); diff --git a/src/html/html_document.h b/src/html/html_document.h index 4abab09..31770ef 100644 --- a/src/html/html_document.h +++ b/src/html/html_document.h @@ -36,7 +36,7 @@ struct dom_html_document { /* Initialise a HTMLDocument */ dom_exception _dom_html_document_initialise(dom_html_document *doc, dom_alloc alloc, void *pw, dom_msg msg, void *msg_pw, - dom_events_default_action_fetcher daf, dom_ui_handler ui, + dom_events_default_action_fetcher daf, dom_ui_handler *ui, dom_parser_type pt); /* Finalise a HTMLDocument */ void _dom_html_document_finalise(dom_html_document *doc); -- cgit v1.2.3