From 8269bfb5dc9448b7e245b2edf01e741ded3bab1c Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Fri, 30 Nov 2018 21:10:39 -0800 Subject: libix2: drop pointer from ix2_search_cb typedef I despise hiding pointer types in typedefs, it makes usage less clear/obvious to the reader. --- src/ix2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ix2.c') diff --git a/src/ix2.c b/src/ix2.c index 2ff7862..a7aea16 100644 --- a/src/ix2.c +++ b/src/ix2.c @@ -571,7 +571,7 @@ ix2_object_t * ix2_object_move(ix2_t *ix2, ix2_object_t *object, v2f_t *object_p /* Search for objects overlapping a point in index ix2. */ /* Returns number of cb calls performed on hits, if cb is NULL calls will be skipped but hits still counted for return. */ -unsigned ix2_search_by_point(ix2_t *ix2, v2f_t *point, ix2_search_cb cb, void *cb_context) +unsigned ix2_search_by_point(ix2_t *ix2, v2f_t *point, ix2_search_cb *cb, void *cb_context) { unsigned n_hits = 0; ix2_object_ref_t *ref, *_ref; @@ -677,7 +677,7 @@ static void search_node_by_aabb(ix2_node_t *node, bb2f_t *node_aabb, v2f_t *sear /* Search for objects overlapping an aabb in index ix2. */ /* Returns number of cb calls performed on hits, if cb is NULL calls will be skipped but hits still counted for return. */ -unsigned ix2_search_by_aabb(ix2_t *ix2, v2f_t *search_position, v2f_t *search_origin, bb2f_t *search_aabb, ix2_search_cb cb, void *cb_context) +unsigned ix2_search_by_aabb(ix2_t *ix2, v2f_t *search_position, v2f_t *search_origin, bb2f_t *search_aabb, ix2_search_cb *cb, void *cb_context) { unsigned n_hits = 0; LIST_HEAD (hits); -- cgit v1.2.3