summaryrefslogtreecommitdiffstats
path: root/libass/ass_cache.h
diff options
context:
space:
mode:
Diffstat (limited to 'libass/ass_cache.h')
-rw-r--r--libass/ass_cache.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/libass/ass_cache.h b/libass/ass_cache.h
index c18f9d8..6cea269 100644
--- a/libass/ass_cache.h
+++ b/libass/ass_cache.h
@@ -57,7 +57,6 @@ typedef struct {
// Type-specific function pointers
typedef unsigned(*HashFunction)(void *key, size_t key_size);
-typedef size_t(*ItemSize)(void *value, size_t value_size);
typedef unsigned(*HashCompare)(void *a, void *b, size_t key_size);
typedef bool(*CacheKeyCopy)(void *dst, void *src, size_t key_size);
typedef void(*CacheItemDestructor)(void *key, void *value);
@@ -106,10 +105,10 @@ typedef struct {
Cache *ass_cache_create(HashFunction hash_func, HashCompare compare_func,
CacheKeyCopy copy_func, CacheItemDestructor destruct_func,
- ItemSize size_func, size_t key_size, size_t value_size);
+ size_t key_size, size_t value_size);
bool ass_cache_get(Cache *cache, void *key, void *value_ptr);
void *ass_cache_get_key(void *value);
-void ass_cache_commit(void *value);
+void ass_cache_commit(void *value, size_t item_size);
void ass_cache_inc_ref(void *value);
void ass_cache_dec_ref(void *value);
void ass_cache_cut(Cache *cache, size_t max_size);