summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMichael Drake <michael.drake@codethink.co.uk>2021-02-09 17:12:52 +0000
committerMichael Drake <michael.drake@codethink.co.uk>2021-02-09 17:12:52 +0000
commit720668e90e02bf408d344e8b1d83fb16638c8605 (patch)
treed02ff06b5b9c51eee160c529e317704eb26df3c6 /include
parenta2ffae698d4c12d9457c62b79eddd4342e2e213c (diff)
downloadlibdom-720668e90e02bf408d344e8b1d83fb16638c8605.tar.gz
libdom-720668e90e02bf408d344e8b1d83fb16638c8605.tar.bz2
node: Constify get user data parameters.
Diffstat (limited to 'include')
-rw-r--r--include/dom/core/node.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/dom/core/node.h b/include/dom/core/node.h
index 5058c78..90026a1 100644
--- a/include/dom/core/node.h
+++ b/include/dom/core/node.h
@@ -169,8 +169,8 @@ typedef struct dom_node_vtable {
dom_exception (*dom_node_set_user_data)(dom_node_internal *node,
dom_string *key, void *data,
dom_user_data_handler handler, void **result);
- dom_exception (*dom_node_get_user_data)(dom_node_internal *node,
- dom_string *key, void **result);
+ dom_exception (*dom_node_get_user_data)(const dom_node_internal *node,
+ const dom_string *key, void **result);
} dom_node_vtable;
/* The ref/unref methods define */
@@ -567,8 +567,8 @@ static inline dom_exception dom_node_set_user_data(struct dom_node *node,
(dom_node *) (n), (k), (void *) (d), \
(dom_user_data_handler) h, (void **) (r))
-static inline dom_exception dom_node_get_user_data(struct dom_node *node,
- dom_string *key, void **result)
+static inline dom_exception dom_node_get_user_data(const struct dom_node *node,
+ const dom_string *key, void **result)
{
return ((dom_node_vtable *) node->vtable)->dom_node_get_user_data(
(dom_node_internal *) node, key, result);