#include <config.h>
#endif
+#include "ppmutex.h"
#include "normalize_cache.h"
#include "pazpar2_config.h"
nc->nmem = nmem;
nc->items = 0;
nc->mutex = 0;
- yaz_mutex_create(&nc->mutex);
- yaz_mutex_set_name(nc->mutex, "normalize_cache");
+ pazpar2_mutex_create(&nc->mutex, "normalize_cache");
return nc;
}
normalize_record_t normalize_cache_get(normalize_cache_t nc,
- struct conf_service *service,
+ struct conf_config *conf,
const char *spec)
{
normalize_record_t nt;
nt = ci->nt;
else
{
- nt = normalize_record_create(service, spec);
+ nt = normalize_record_create(conf, spec);
if (nt)
{
ci = nmem_malloc(nc->nmem, sizeof(*ci));