]> rtime.felk.cvut.cz Git - ulut.git/blobdiff - ulut/ul_gavl.h
Use pointer to constant key type in GSA and GAVL custom types.
[ulut.git] / ulut / ul_gavl.h
index 7593a8e90a3a658caa3bf62a372627ca62d5a5ea..5ce7f531725d2649a92eb054b7215ab4fa4e84b7 100644 (file)
@@ -424,10 +424,10 @@ cust_prefix##_node2key(const cust_root_t *root, gavl_node_t *node)\
   { return &(cust_prefix##_node2item(root, node)->cust_item_key);}\
 \
 void cust_prefix##_init_root_field(cust_root_t *root);\
-int cust_prefix##_search_node(const cust_root_t *root, cust_key_t *key, gavl_node_t **nodep);\
-cust_item_t *cust_prefix##_find(const cust_root_t *root, cust_key_t *key);\
-cust_item_t *cust_prefix##_find_first(const cust_root_t *root, cust_key_t *key);\
-cust_item_t *cust_prefix##_find_after(const cust_root_t *root, cust_key_t *key);\
+int cust_prefix##_search_node(const cust_root_t *root, cust_key_t const *key, gavl_node_t **nodep);\
+cust_item_t *cust_prefix##_find(const cust_root_t *root, cust_key_t const *key);\
+cust_item_t *cust_prefix##_find_first(const cust_root_t *root, cust_key_t const *key);\
+cust_item_t *cust_prefix##_find_after(const cust_root_t *root, cust_key_t const *key);\
 int cust_prefix##_insert(cust_root_t *root, cust_item_t *item);\
 int cust_prefix##_delete_node(cust_root_t *root, gavl_node_t *node);\
 int cust_prefix##_delete(cust_root_t *root, cust_item_t *item);\