summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary/util/u_cache.h
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2008-12-22 16:55:27 +0000
committerJosé Fonseca <jfonseca@vmware.com>2008-12-22 16:55:27 +0000
commitae7e75d6108e8621878083b35a13edc1aca893df (patch)
tree6d637af9eff90e245d46f97a923ffdc0b0aaa954 /src/gallium/auxiliary/util/u_cache.h
parent229424b2d79f7ab19c6799795df155c265e3f258 (diff)
gallium: const correctness.
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);