summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary/util/u_cache.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/auxiliary/util/u_cache.h')
-rw-r--r--src/gallium/auxiliary/util/u_cache.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/gallium/auxiliary/util/u_cache.h b/src/gallium/auxiliary/util/u_cache.h
index 835e083734..8a612c6585 100644
--- a/src/gallium/auxiliary/util/u_cache.h
+++ b/src/gallium/auxiliary/util/u_cache.h
@@ -59,19 +59,19 @@ struct util_cache;
* @param size maximum number of entries
*/
struct util_cache *
-util_cache_create(uint32_t (*hash)(void *key),
- int (*compare)(void *key1, void *key2),
- void (*destroy)(void *key, void *value),
- uint32_t size);
+util_cache_create(uint32_t (*hash)(const void *key),
+ int (*compare)(const void *key1, const void *key2),
+ void (*destroy)(void *key, void *value),
+ uint32_t size);
void
util_cache_set(struct util_cache *cache,
- void *key,
- void *value);
+ void *key,
+ void *value);
void *
util_cache_get(struct util_cache *cache,
- void *key);
+ const void *key);
void
util_cache_clear(struct util_cache *cache);