summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2015-10-25 19:10:39 +0000
committerVincent Sanders <vince@kyllikki.org>2015-10-25 19:10:39 +0000
commit8dd180745e9e2cf4581dbd8dc0a6cb860594913c (patch)
treecff5a786706784bb4504d429c3647bb18ffa1183
parentdf9016f830a109f70fb1a418ae189c0a3e607cca (diff)
downloadlibdom-8dd180745e9e2cf4581dbd8dc0a6cb860594913c.tar.gz
libdom-8dd180745e9e2cf4581dbd8dc0a6cb860594913c.tar.bz2
Update the html pre element API to use dom_long
-rw-r--r--include/dom/html/html_pre_element.h6
-rw-r--r--src/html/html_pre_element.c4
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 <stdbool.h>
+
+#include <dom/inttypes.h>
#include <dom/core/exceptions.h>
#include <dom/core/string.h>
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);