commit 84a929fa4815f3911efccd316ff53c77987fe74e
parent cfcdf8aed6ee4222f875fcf3ca9c1ffd1356f148
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Tue, 29 Nov 2016 10:35:34 +0100
Update the API of the sanim_get_child_node
Remove the const qualifier on the output node variable.
Diffstat:
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/sanim.h b/src/sanim.h
@@ -244,7 +244,7 @@ SANIM_API res_T
sanim_node_get_child
(const struct sanim_node* node,
const size_t idx,
- const struct sanim_node** child);
+ struct sanim_node** child);
SANIM_API res_T
sanim_node_is_pivot
diff --git a/src/sanim_node.c b/src/sanim_node.c
@@ -1189,7 +1189,7 @@ res_T
sanim_node_get_child
(const struct sanim_node* node,
const size_t idx,
- const struct sanim_node** child)
+ struct sanim_node** child)
{
struct sanim_node* const* children;
if (!node || !child || !node->data)
diff --git a/src/test_sanim_utils.c b/src/test_sanim_utils.c
@@ -153,7 +153,7 @@ my_type_get_child
const size_t idx,
struct my_type** child)
{
- const struct sanim_node* tmp;
+ struct sanim_node* tmp;
res_T res = RES_OK;
if (!t || !child) return RES_BAD_ARG;
res = sanim_node_get_child(&t->node, idx, &tmp);