diff options
author | Daniel Silverstone <dsilvers@digital-scurf.org> | 2012-07-07 17:38:52 +0100 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2012-07-07 17:38:52 +0100 |
commit | 02096736454faa7c850ab34daffd3ba206c71f52 (patch) | |
tree | 28051967d5d1149a5664fc95d7fff00b20e3aa38 /include/dom/html/html_head_element.h | |
parent | 3cca6f95867759cd3610aef0157daa09b506b17d (diff) | |
download | libdom-02096736454faa7c850ab34daffd3ba206c71f52.tar.gz libdom-02096736454faa7c850ab34daffd3ba206c71f52.tar.bz2 |
HTML{Html,Head}Element: Unvirtualise accessors
Diffstat (limited to 'include/dom/html/html_head_element.h')
-rw-r--r-- | include/dom/html/html_head_element.h | 31 |
1 files changed, 4 insertions, 27 deletions
diff --git a/include/dom/html/html_head_element.h b/include/dom/html/html_head_element.h index ce2a817..cb10358 100644 --- a/include/dom/html/html_head_element.h +++ b/include/dom/html/html_head_element.h @@ -12,33 +12,10 @@ 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)) - +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); #endif |