summaryrefslogtreecommitdiff
path: root/src/html/html_link_element.h
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2010-08-30 13:06:19 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2010-08-30 13:06:19 +0000
commit7b12b43398bd2beaebe9444ca76e5150b8410691 (patch)
tree4ce25caee01c0a2a2ebbe052999b5eb8a2fbe2e3 /src/html/html_link_element.h
parente1c80e0df81cec4ccf6a9dd378942d091a0f15dd (diff)
downloadlibdom-7b12b43398bd2beaebe9444ca76e5150b8410691.tar.gz
libdom-7b12b43398bd2beaebe9444ca76e5150b8410691.tar.bz2
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
Diffstat (limited to 'src/html/html_link_element.h')
-rw-r--r--src/html/html_link_element.h55
1 files changed, 55 insertions, 0 deletions
diff --git a/src/html/html_link_element.h b/src/html/html_link_element.h
new file mode 100644
index 0000000..4c6fe55
--- /dev/null
+++ b/src/html/html_link_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 <struggleyb.nku.com>
+ */
+
+#ifndef dom_internal_html_link_element_h_
+#define dom_internal_html_link_element_h_
+
+#include <dom/html/html_link_element.h>
+
+#include "html/html_element.h"
+
+struct dom_html_link_element {
+ struct dom_html_element base;
+ /**< The base class */
+};
+
+/* Create a dom_html_link_element object */
+dom_exception _dom_html_link_element_create(struct dom_document *doc,
+ struct dom_html_link_element **ele);
+
+/* Initialise a dom_html_link_element object */
+dom_exception _dom_html_link_element_initialise(struct dom_document *doc,
+ struct dom_html_link_element *ele);
+
+/* Finalise a dom_html_link_element object */
+void _dom_html_link_element_finalise(struct dom_document *doc,
+ struct dom_html_link_element *ele);
+
+/* Destroy a dom_html_link_element object */
+void _dom_html_link_element_destroy(struct dom_document *doc,
+ struct dom_html_link_element *ele);
+
+/* The protected virtual functions */
+dom_exception _dom_html_link_element_parse_attribute(dom_element *ele,
+ struct dom_string *name, struct dom_string *value,
+ struct dom_string **parsed);
+void _dom_virtual_html_link_element_destroy(dom_node_internal *node);
+dom_exception _dom_html_link_element_alloc(struct dom_document *doc,
+ struct dom_node_internal *n, struct dom_node_internal **ret);
+dom_exception _dom_html_link_element_copy(struct dom_node_internal *new,
+ struct dom_node_internal *old);
+
+#define DOM_HTML_LINK_ELEMENT_PROTECT_VTABLE \
+ _dom_html_link_element_parse_attribute
+
+#define DOM_NODE_PROTECT_VTABLE_HTML_LINK_ELEMENT \
+ _dom_virtual_html_link_element_destroy, \
+ _dom_html_link_element_alloc, \
+ _dom_html_link_element_copy
+
+#endif
+