diff options
-rw-r--r-- | include/dom/core/node.h | 8 | ||||
-rw-r--r-- | src/core/node.c | 4 | ||||
-rw-r--r-- | src/core/node.h | 4 |
3 files changed, 8 insertions, 8 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); diff --git a/src/core/node.c b/src/core/node.c index f8b8def..1218742 100644 --- a/src/core/node.c +++ b/src/core/node.c @@ -1827,8 +1827,8 @@ dom_exception _dom_node_set_user_data(dom_node_internal *node, * \param result Pointer to location to receive result * \return DOM_NO_ERR. */ -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) { struct dom_user_data *ud = NULL; diff --git a/src/core/node.h b/src/core/node.h index 36d0ec1..36cdd7d 100644 --- a/src/core/node.h +++ b/src/core/node.h @@ -182,8 +182,8 @@ dom_exception _dom_node_get_feature(dom_node_internal *node, 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); #define DOM_NODE_EVENT_TARGET_VTABLE \ _dom_node_add_event_listener, \ |