summaryrefslogtreecommitdiff
path: root/src/events
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2011-12-22 10:24:04 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2011-12-22 10:24:04 +0000
commit91284dafc6d73c59264b9b899c512928cbbd50b7 (patch)
treeafd88cc4a079573cc76d7adbbb0abf6fa93e1d60 /src/events
parentcd25d95c064e96a2f47d5eb20ef37face4cb8923 (diff)
downloadlibdom-91284dafc6d73c59264b9b899c512928cbbd50b7.tar.gz
libdom-91284dafc6d73c59264b9b899c512928cbbd50b7.tar.bz2
Move dom_string data accessing functions to public header.
svn path=/trunk/libdom/; revision=13322
Diffstat (limited to 'src/events')
-rw-r--r--src/events/keyboard_event.c6
-rw-r--r--src/events/mouse_event.c4
2 files changed, 5 insertions, 5 deletions
diff --git a/src/events/keyboard_event.c b/src/events/keyboard_event.c
index f67ff61..3b065e0 100644
--- a/src/events/keyboard_event.c
+++ b/src/events/keyboard_event.c
@@ -177,8 +177,8 @@ dom_exception _dom_keyboard_event_get_modifier_state(dom_keyboard_event *evt,
return DOM_NO_ERR;
}
- const char *data = _dom_string_data(m);
- size_t len = _dom_string_byte_length(m);
+ const char *data = dom_string_data(m);
+ size_t len = dom_string_byte_length(m);
if (len == SLEN("AltGraph") && strncmp(data, "AltGraph", len) == 0) {
*state = ((evt->modifier_state & DOM_MOD_ALT_GRAPH) != 0);
@@ -291,7 +291,7 @@ dom_exception _dom_parse_modifier_list(dom_string *modifier_list,
if (modifier_list == NULL)
return DOM_NO_ERR;
- const char *data = _dom_string_data(modifier_list);
+ const char *data = dom_string_data(modifier_list);
const char *m = data;
size_t len = 0;
diff --git a/src/events/mouse_event.c b/src/events/mouse_event.c
index 501ef69..68e21bc 100644
--- a/src/events/mouse_event.c
+++ b/src/events/mouse_event.c
@@ -229,8 +229,8 @@ dom_exception _dom_mouse_event_get_modifier_state(dom_mouse_event *evt,
return DOM_NO_ERR;
}
- const char *data = _dom_string_data(m);
- size_t len = _dom_string_byte_length(m);
+ const char *data = dom_string_data(m);
+ size_t len = dom_string_byte_length(m);
if (len == SLEN("AltGraph") && strncmp(data, "AltGraph", len) == 0) {
*state = ((evt->modifier_state & DOM_MOD_ALT_GRAPH) != 0);