From b657c277f517f4ab0a4da21e4f8c4cb6f8f53013 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Mon, 30 Aug 2010 13:06:19 +0000 Subject: Merge branches/struggleyb/libdom-html to trunk. A few additional fixes to reduce the number of regressions to single figures. svn path=/trunk/dom/; revision=10724 --- src/html/html_html_element.h | 55 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 src/html/html_html_element.h (limited to 'src/html/html_html_element.h') diff --git a/src/html/html_html_element.h b/src/html/html_html_element.h new file mode 100644 index 0000000..4e81d18 --- /dev/null +++ b/src/html/html_html_element.h @@ -0,0 +1,55 @@ +/* + * This file is part of libdom. + * Licensed under the MIT License, + * http://www.opensource.org/licenses/mit-license.php + * Copyright 2009 Bo Yang + */ + +#ifndef dom_internal_html_html_element_h_ +#define dom_internal_html_html_element_h_ + +#include + +#include "html/html_element.h" + +struct dom_html_html_element { + struct dom_html_element base; + /**< The base class */ +}; + +/* Create a dom_html_html_element object */ +dom_exception _dom_html_html_element_create(struct dom_document *doc, + struct dom_html_html_element **ele); + +/* Initialise a dom_html_html_element object */ +dom_exception _dom_html_html_element_initialise(struct dom_document *doc, + struct dom_html_html_element *ele); + +/* Finalise a dom_html_html_element object */ +void _dom_html_html_element_finalise(struct dom_document *doc, + struct dom_html_html_element *ele); + +/* Destroy a dom_html_html_element object */ +void _dom_html_html_element_destroy(struct dom_document *doc, + struct dom_html_html_element *ele); + +/* The protected virtual functions */ +dom_exception _dom_html_html_element_parse_attribute(dom_element *ele, + struct dom_string *name, struct dom_string *value, + struct dom_string **parsed); +void _dom_virtual_html_html_element_destroy(dom_node_internal *node); +dom_exception _dom_html_html_element_alloc(struct dom_document *doc, + struct dom_node_internal *n, struct dom_node_internal **ret); +dom_exception _dom_html_html_element_copy(struct dom_node_internal *new, + struct dom_node_internal *old); + +#define DOM_HTML_HTML_ELEMENT_PROTECT_VTABLE \ + _dom_html_html_element_parse_attribute + +#define DOM_NODE_PROTECT_VTABLE_HTML_HTML_ELEMENT \ + _dom_virtual_html_html_element_destroy, \ + _dom_html_html_element_alloc, \ + _dom_html_html_element_copy + +#endif + -- cgit v1.2.3