29#include <mstdlib/base/m_defs.h>
30#include <mstdlib/base/m_types.h>
31#include <mstdlib/base/m_hashtable.h>
32#include <mstdlib/base/m_sort.h>
59typedef void *(*M_cache_duplicate_func)(
const void *);
M_cache_duplicate_func key_duplicate
Definition: m_cache.h:75
M_cache_duplicate_func value_duplicate
Definition: m_cache.h:79
M_cache_free_func value_free
Definition: m_cache.h:81
M_cache_free_func key_free
Definition: m_cache.h:77
size_t M_cache_max_size(const M_cache_t *c)
void(* M_cache_free_func)(void *)
Definition: m_cache.h:63
M_bool M_cache_set_max_size(M_cache_t *c, size_t max_size)
M_cache_flags_t
Definition: m_cache.h:67
void *(* M_cache_duplicate_func)(const void *)
Definition: m_cache.h:59
void M_cache_destroy(M_cache_t *c)
M_bool M_cache_remove(M_cache_t *c, const void *key)
struct M_cache M_cache_t
Definition: m_cache.h:55
M_bool M_cache_insert(M_cache_t *c, const void *key, const void *value)
M_cache_t * M_cache_create(size_t max_size, M_hashtable_hash_func key_hash, M_sort_compar_t key_equality, M_uint32 flags, const struct M_cache_callbacks *callbacks) M_MALLOC
size_t M_cache_size(const M_cache_t *c)
M_bool M_cache_get(const M_cache_t *c, const void *key, void **value)
@ M_CACHE_NONE
Definition: m_cache.h:68
M_uint32(* M_hashtable_hash_func)(const void *, M_uint32)
Definition: m_hashtable.h:147
int(* M_sort_compar_t)(const void *arg1, const void *arg2, void *thunk)
Definition: m_sort.h:78