summaryrefslogtreecommitdiff
path: root/src/html/html_opt_group_element.h
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2012-07-19 13:06:22 +0100
committerDaniel Silverstone <dsilvers@digital-scurf.org>2012-07-19 13:06:22 +0100
commita7b84b02a09f171157812a28691369eeafbbf7e4 (patch)
treea6237217ab7a4d58e7f3268bbd607f12dac19a5c /src/html/html_opt_group_element.h
parent3c0511ee915665dca67f53165bdf1bacf30b2854 (diff)
downloadlibdom-a7b84b02a09f171157812a28691369eeafbbf7e4.tar.gz
libdom-a7b84b02a09f171157812a28691369eeafbbf7e4.tar.bz2
HTMLOptGroupElement: Implementation
Diffstat (limited to 'src/html/html_opt_group_element.h')
-rw-r--r--src/html/html_opt_group_element.h46
1 files changed, 45 insertions, 1 deletions
diff --git a/src/html/html_opt_group_element.h b/src/html/html_opt_group_element.h
index 2e182d5..c7f8c13 100644
--- a/src/html/html_opt_group_element.h
+++ b/src/html/html_opt_group_element.h
@@ -2,6 +2,50 @@
* This file is part of libdom.
* Licensed under the MIT License,
* http://www.opensource.org/licenses/mit-license.php
- * Copyright 2009 Bo Yang <struggleyb.nku@gmail.com>
+ * Copyright 2012 Daniel Silverstone <dsilvers@netsurf-browser.org>
*/
+#ifndef dom_internal_html_opt_group_element_h_
+#define dom_internal_html_opt_group_element_h_
+
+#include <dom/html/html_opt_group_element.h>
+
+#include "html/html_element.h"
+
+struct dom_html_opt_group_element {
+ struct dom_html_element base;
+ /**< The base class */
+};
+
+/* Create a dom_html_opt_group_element object */
+dom_exception _dom_html_opt_group_element_create(struct dom_html_document *doc,
+ dom_string *namespace, dom_string *prefix,
+ struct dom_html_opt_group_element **ele);
+
+/* Initialise a dom_html_opt_group_element object */
+dom_exception _dom_html_opt_group_element_initialise(struct dom_html_document *doc,
+ dom_string *namespace, dom_string *prefix,
+ struct dom_html_opt_group_element *ele);
+
+/* Finalise a dom_html_opt_group_element object */
+void _dom_html_opt_group_element_finalise(struct dom_html_opt_group_element *ele);
+
+/* Destroy a dom_html_opt_group_element object */
+void _dom_html_opt_group_element_destroy(struct dom_html_opt_group_element *ele);
+
+/* The protected virtual functions */
+dom_exception _dom_html_opt_group_element_parse_attribute(dom_element *ele,
+ dom_string *name, dom_string *value,
+ dom_string **parsed);
+void _dom_virtual_html_opt_group_element_destroy(dom_node_internal *node);
+dom_exception _dom_html_opt_group_element_copy(dom_node_internal *old,
+ dom_node_internal **copy);
+
+#define DOM_HTML_OPT_GROUP_ELEMENT_PROTECT_VTABLE \
+ _dom_html_opt_group_element_parse_attribute
+
+#define DOM_NODE_PROTECT_VTABLE_HTML_OPT_GROUP_ELEMENT \
+ _dom_virtual_html_opt_group_element_destroy, \
+ _dom_html_opt_group_element_copy
+
+#endif