22 #include <yaz/yaz-util.h>
23 #include <yaz/mutex.h>
49 NMEM nmem = nmem_create();
65 yaz_mutex_enter(nc->
mutex);
76 ci = nmem_malloc(nc->
nmem,
sizeof(*ci));
83 yaz_mutex_leave(nc->
mutex);
92 for (; ci; ci = ci->
next)
94 yaz_mutex_destroy(&nc->
mutex);
95 nmem_destroy(nc->
nmem);
normalize_record_t normalize_cache_get(normalize_cache_t nc, struct conf_service *service, const char *spec)
normalize_cache_t normalize_cache_create(void)
void normalize_cache_destroy(normalize_cache_t nc)
void normalize_record_destroy(normalize_record_t nt)
normalize_record_t normalize_record_create(struct conf_service *service, const char *spec)
void pazpar2_mutex_create(YAZ_MUTEX *p, const char *name)
struct cached_item * next
struct cached_item * items