1 #ifndef KEYCACHES_INCLUDED
2 #define KEYCACHES_INCLUDED
24 typedef int (*process_key_cache_t) (
const char *,
KEY_CACHE *);
38 uint name_length_arg, uchar* data_arg)
39 :name_length(name_length_arg), data(data_arg)
41 name= my_strndup(name_arg, name_length, MYF(MY_WME));
45 bool cmp(
const char *name_cmp, uint length)
47 return length == name_length && !memcmp(name, name_cmp, length);
52 my_free((
void *) name);
59 void delete_elements(
void (*free_element)(
const char*, uchar*));
68 KEY_CACHE *get_or_create_key_cache(
const char *
name, uint length);
70 bool process_key_caches(process_key_cache_t func);