summaryrefslogtreecommitdiff
path: root/src/html/html_hr_element.h
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2014-03-10 09:19:06 +0000
committerDaniel Silverstone <dsilvers@digital-scurf.org>2014-03-10 09:19:06 +0000
commit2c5052d450577d5c26b902ae5f4402b87f76e406 (patch)
tree8942a65e0fd25edfdb4edff8155d6fd471340b2a /src/html/html_hr_element.h
parentec446872606a65cf59e6bbbded464110353d9c59 (diff)
parentdc6bcfdcc5058940a0ffc919587f1cce5c63ec2f (diff)
downloadlibdom-2c5052d450577d5c26b902ae5f4402b87f76e406.tar.gz
libdom-2c5052d450577d5c26b902ae5f4402b87f76e406.tar.bz2
Merge remote-tracking branch 'parwana/hrtag3'
This adds the HTMLHRElement (dom_html_hr_element). Reviewed-By: Daniel Silverstone <dsilvers@netsurf-browser.org>
Diffstat (limited to 'src/html/html_hr_element.h')
-rw-r--r--src/html/html_hr_element.h45
1 files changed, 45 insertions, 0 deletions
diff --git a/src/html/html_hr_element.h b/src/html/html_hr_element.h
index 2e182d5..c3cf717 100644
--- a/src/html/html_hr_element.h
+++ b/src/html/html_hr_element.h
@@ -3,5 +3,50 @@
* Licensed under the MIT License,
* http://www.opensource.org/licenses/mit-license.php
* Copyright 2009 Bo Yang <struggleyb.nku@gmail.com>
+ * Copyright 2014 Rupinder Singh Khokhar <rsk1coder99@gmail.com>
*/
+#ifndef dom_internal_html_hr_element_h_
+#define dom_internal_html_hr_element_h_
+
+#include <dom/html/html_hr_element.h>
+#include "html/html_element.h"
+
+
+struct dom_html_hr_element {
+ struct dom_html_element base;
+ /**< The base class */
+};
+
+/* Create a dom_html_hr_element object */
+dom_exception _dom_html_hr_element_create(struct dom_html_document *doc,
+ dom_string *namespace, dom_string *prefix,
+ struct dom_html_hr_element **ele);
+
+/* Initialise a dom_html_hr_element object */
+dom_exception _dom_html_hr_element_initialise(struct dom_html_document *doc,
+ dom_string *namespace, dom_string *prefix,
+ struct dom_html_hr_element *ele);
+
+/* Finalise a dom_html_hr_element object */
+void _dom_html_hr_element_finalise(struct dom_html_hr_element *ele);
+
+/* Destroy a dom_html_hr_element object */
+void _dom_html_hr_element_destroy(struct dom_html_hr_element *ele);
+
+/* The protected virtual functions */
+dom_exception _dom_html_hr_element_parse_attribute(dom_element *ele,
+ dom_string *name, dom_string *value,
+ dom_string **parsed);
+void _dom_virtual_html_hr_element_destroy(dom_node_internal *node);
+dom_exception _dom_html_hr_element_copy(dom_node_internal *old,
+ dom_node_internal **copy);
+
+#define DOM_HTML_HR_ELEMENT_PROTECT_VTABLE \
+ _dom_html_hr_element_parse_attribute
+
+#define DOM_NODE_PROTECT_VTABLE_HTML_HR_ELEMENT \
+ _dom_virtual_html_hr_element_destroy, \
+ _dom_html_hr_element_copy
+
+#endif