diff options
Diffstat (limited to 'src/html/html_element.h')
-rw-r--r-- | src/html/html_element.h | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/src/html/html_element.h b/src/html/html_element.h index e32b09e..2d42abc 100644 --- a/src/html/html_element.h +++ b/src/html/html_element.h @@ -24,13 +24,20 @@ struct dom_html_element { /**< The base class */ }; -dom_exception _dom_html_element_create(struct dom_html_document *doc, - dom_string *name, dom_string *namespace, - dom_string *prefix, dom_html_element **result); +struct dom_html_element_create_params { + struct dom_html_document *doc; + dom_string *name; + dom_string *namespace; + dom_string *prefix; +}; + +dom_exception _dom_html_element_create( + struct dom_html_element_create_params *params, + dom_html_element **result); -dom_exception _dom_html_element_initialise(struct dom_html_document *doc, - struct dom_html_element *el, dom_string *name, - dom_string *namespace, dom_string *prefix); +dom_exception _dom_html_element_initialise( + struct dom_html_element_create_params *params, + struct dom_html_element *el); void _dom_html_element_finalise(struct dom_html_element *ele); |