27 #include <yaz/xmalloc.h>
48 NMEM nmem_ent = nmem_create();
56 for (i = 0; i < st->
hsize; i++)
74 for (i = 0;
name[i]; i++)
89 ne = nmem_malloc(st->
nmem_ent,
sizeof(*ne));
104 for (; e ; e = e->
next)
121 for (; *e ; e = &(*e)->
next)
122 if (!strcmp(
name, (*e)->name))
struct record_index_entry ent
int zebra_strmap_remove(zebra_strmap_t st, const char *name)
static struct strmap_entry ** hash(zebra_strmap_t st, const char *name)
void zebra_strmap_destroy(zebra_strmap_t st)
void * zebra_strmap_lookup(zebra_strmap_t st, const char *name, int no, size_t *data_len)
const char * zebra_strmap_it_next(zebra_strmap_it it, void **data_buf, size_t *data_len)
zebra_strmap_t zebra_strmap_create(void)
void zebra_strmap_it_destroy(zebra_strmap_it it)
void zebra_strmap_add(zebra_strmap_t st, const char *name, void *data_buf, size_t data_len)
int zebra_strmap_get_size(zebra_strmap_t st)
zebra_strmap_it zebra_strmap_it_create(zebra_strmap_t st)
struct strmap_entry * next
struct strmap_entry * ent
struct strmap_entry ** entries
struct strmap_entry * free_entries
struct zebra_strmap_it_s * zebra_strmap_it