From 8dd180745e9e2cf4581dbd8dc0a6cb860594913c Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Sun, 25 Oct 2015 19:10:39 +0000 Subject: Update the html pre element API to use dom_long --- include/dom/html/html_pre_element.h | 6 ++++-- src/html/html_pre_element.c | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/include/dom/html/html_pre_element.h b/include/dom/html/html_pre_element.h index bd72701..48c885f 100644 --- a/include/dom/html/html_pre_element.h +++ b/include/dom/html/html_pre_element.h @@ -9,15 +9,17 @@ #define dom_html_pre_element_h_ #include + +#include #include #include typedef struct dom_html_pre_element dom_html_pre_element; dom_exception dom_html_pre_element_get_width( - dom_html_pre_element *element, int32_t *width); + dom_html_pre_element *element, dom_long *width); dom_exception dom_html_pre_element_set_width( - dom_html_pre_element *element, uint32_t width); + dom_html_pre_element *element, dom_long width); #endif diff --git a/src/html/html_pre_element.c b/src/html/html_pre_element.c index 1d220fd..8f564c2 100644 --- a/src/html/html_pre_element.c +++ b/src/html/html_pre_element.c @@ -92,7 +92,7 @@ void _dom_html_pre_element_destroy(struct dom_html_pre_element *ele) * \param pre The dom_html_pre_element object */ dom_exception dom_html_pre_element_get_width( - dom_html_pre_element *pre, int32_t *width) + dom_html_pre_element *pre, dom_long *width) { return dom_html_element_get_int32_t_property(&pre->base, "width", SLEN("width"), width); @@ -104,7 +104,7 @@ dom_exception dom_html_pre_element_get_width( * \param pre The dom_html_pre_element object */ dom_exception dom_html_pre_element_set_width( - dom_html_pre_element *pre, uint32_t width) + dom_html_pre_element *pre, dom_long width) { return dom_html_element_set_int32_t_property(&pre->base, "width", SLEN("width"), width); -- cgit v1.2.3