From 82c8ae1c92a31e2395334b58bc2f6a3702cf06b7 Mon Sep 17 00:00:00 2001 From: rsk1994 Date: Sat, 10 May 2014 02:38:24 +0530 Subject: LI
  • Element --- src/html/html_li_element.h | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) (limited to 'src/html/html_li_element.h') diff --git a/src/html/html_li_element.h b/src/html/html_li_element.h index 2e182d5..c50a2db 100644 --- a/src/html/html_li_element.h +++ b/src/html/html_li_element.h @@ -3,5 +3,50 @@ * Licensed under the MIT License, * http://www.opensource.org/licenses/mit-license.php * Copyright 2009 Bo Yang + * Copyright 2014 Rupinder Singh Khokhar */ +#ifndef dom_internal_html_li_element_h_ +#define dom_internal_html_li_element_h_ + +#include +#include "html/html_element.h" + + +struct dom_html_li_element { + struct dom_html_element base; + /**< The base class */ +}; + +/* Create a dom_html_li_element object */ +dom_exception _dom_html_li_element_create(struct dom_html_document *doc, + dom_string *namespace, dom_string *lifix, + struct dom_html_li_element **ele); + +/* Initialise a dom_html_li_element object */ +dom_exception _dom_html_li_element_initialise(struct dom_html_document *doc, + dom_string *namespace, dom_string *lifix, + struct dom_html_li_element *ele); + +/* Finalise a dom_html_li_element object */ +void _dom_html_li_element_finalise(struct dom_html_li_element *ele); + +/* Destroy a dom_html_li_element object */ +void _dom_html_li_element_destroy(struct dom_html_li_element *ele); + +/* The protected virtual functions */ +dom_exception _dom_html_li_element_parse_attribute(dom_element *ele, + dom_string *name, dom_string *value, + dom_string **parsed); +void _dom_virtual_html_li_element_destroy(dom_node_internal *node); +dom_exception _dom_html_li_element_copy(dom_node_internal *old, + dom_node_internal **copy); + +#define DOM_HTML_LI_ELEMENT_PROTECT_VTABLE \ + _dom_html_li_element_parse_attribute + +#define DOM_NODE_PROTECT_VTABLE_HTML_LI_ELEMENT \ + _dom_virtual_html_li_element_destroy, \ + _dom_html_li_element_copy + +#endif -- cgit v1.2.3