summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2012-07-07 15:14:26 +0100
committerDaniel Silverstone <dsilvers@digital-scurf.org>2012-07-07 15:14:26 +0100
commit90b1ce030de101026f33ed0c951b0d07f06792fa (patch)
treeecf3ff81b6f25bc069396dfb901c10cf52c2aa8e /include
parent6f6f365c502da0cefd468755f55848301f7518e7 (diff)
downloadlibdom-90b1ce030de101026f33ed0c951b0d07f06792fa.tar.gz
libdom-90b1ce030de101026f33ed0c951b0d07f06792fa.tar.bz2
HTMLHeadElement: Support for the element, enable the test
Diffstat (limited to 'include')
-rw-r--r--include/dom/dom.h1
-rw-r--r--include/dom/html/html_head_element.h30
2 files changed, 31 insertions, 0 deletions
diff --git a/include/dom/dom.h b/include/dom/dom.h
index 0ce0a23..77a40b3 100644
--- a/include/dom/dom.h
+++ b/include/dom/dom.h
@@ -41,6 +41,7 @@
#include <dom/html/html_document.h>
#include <dom/html/html_element.h>
#include <dom/html/html_html_element.h>
+#include <dom/html/html_head_element.h>
#include <dom/html/html_form_element.h>
/* DOM Events header */
diff --git a/include/dom/html/html_head_element.h b/include/dom/html/html_head_element.h
index e00fc19..ce2a817 100644
--- a/include/dom/html/html_head_element.h
+++ b/include/dom/html/html_head_element.h
@@ -8,7 +8,37 @@
#ifndef dom_html_head_element_h_
#define dom_html_head_element_h_
+#include <dom/html/html_element.h>
+
typedef struct dom_html_head_element dom_html_head_element;
+typedef struct dom_html_head_element_vtable {
+ struct dom_html_element_vtable base;
+
+ dom_exception (*dom_html_head_element_get_profile)(struct dom_html_head_element *element,
+ dom_string **profile);
+ dom_exception (*dom_html_head_element_set_profile)(struct dom_html_head_element *element,
+ dom_string *profile);
+} dom_html_head_element_vtable;
+
+static inline dom_exception dom_html_head_element_get_profile(
+ struct dom_html_head_element *element, dom_string **profile)
+{
+ return ((dom_html_head_element_vtable *) ((dom_node *) element)->vtable)->
+ dom_html_head_element_get_profile(element, profile);
+}
+#define dom_html_head_element_get_profile(e, profile) \
+ dom_html_head_element_get_profile((dom_html_head_element *) (e), (profile))
+
+static inline dom_exception dom_html_head_element_set_profile(
+ struct dom_html_head_element *element, dom_string *profile)
+{
+ return ((dom_html_head_element_vtable *) ((dom_node *) element)->vtable)->
+ dom_html_head_element_set_profile(element, profile);
+}
+#define dom_html_head_element_set_profile(e, profile) \
+ dom_html_head_element_set_profile((dom_html_head_element *) (e), (profile))
+
+
#endif