diff options
author | Vincent Sanders <vince@kyllikki.org> | 2013-02-19 23:27:10 +0000 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2013-02-19 23:27:10 +0000 |
commit | ddb2d27f4206905f2ed2ac7d61b74ce88d68401c (patch) | |
tree | c482500d137ff527279e15f1167ac3d2022fb013 /src/core/implementation.c | |
parent | eb41fa70373b4f54fca3eab5a00521be4e48e5fe (diff) | |
download | libdom-ddb2d27f4206905f2ed2ac7d61b74ce88d68401c.tar.gz libdom-ddb2d27f4206905f2ed2ac7d61b74ce88d68401c.tar.bz2 |
add context for default action function
Diffstat (limited to 'src/core/implementation.c')
-rw-r--r-- | src/core/implementation.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/implementation.c b/src/core/implementation.c index c80af7f..bc07c6d 100644 --- a/src/core/implementation.c +++ b/src/core/implementation.c @@ -153,6 +153,7 @@ dom_exception dom_implementation_create_document( const char *namespace, const char *qname, struct dom_document_type *doctype, dom_events_default_action_fetcher daf, + void *daf_ctx, struct dom_document **doc) { struct dom_document *d; @@ -198,11 +199,11 @@ dom_exception dom_implementation_create_document( if (impl_type == DOM_IMPLEMENTATION_HTML) { dom_html_document *html_doc; - err = _dom_html_document_create(daf, &html_doc); + err = _dom_html_document_create(daf, daf_ctx, &html_doc); d = (dom_document *) html_doc; } else { - err = _dom_document_create(daf, &d); + err = _dom_document_create(daf, daf_ctx, &d); } if (err != DOM_NO_ERR) { |