|
IDZEBRA 2.2.8
|
#include <yaz/yconfig.h>#include <stddef.h>Go to the source code of this file.
Typedefs | |
| typedef struct zebra_strmap * | zebra_strmap_t |
| typedef struct zebra_strmap_it_s * | zebra_strmap_it |
Functions | |
| zebra_strmap_t | zebra_strmap_create (void) |
| void | zebra_strmap_destroy (zebra_strmap_t st) |
| void | zebra_strmap_add (zebra_strmap_t st, const char *name, void *data_buf, size_t data_len) |
| void * | zebra_strmap_lookup (zebra_strmap_t st, const char *name, int no, size_t *data_len) |
| int | zebra_strmap_remove (zebra_strmap_t st, const char *name) |
| zebra_strmap_it | zebra_strmap_it_create (zebra_strmap_t st) |
| void | zebra_strmap_it_destroy (zebra_strmap_it it) |
| const char * | zebra_strmap_it_next (zebra_strmap_it it, void **data_buf, size_t *data_len) |
| typedef struct zebra_strmap_it_s* zebra_strmap_it |
Definition at line 28 of file zebra_strmap.h.
| typedef struct zebra_strmap* zebra_strmap_t |
Definition at line 27 of file zebra_strmap.h.
| void zebra_strmap_add | ( | zebra_strmap_t | st, |
| const char * | name, | ||
| void * | data_buf, | ||
| size_t | data_len | ||
| ) |
Definition at line 80 of file strmap.c.
References strmap_entry::data_buf, strmap_entry::data_len, zebra_strmap::free_entries, hash(), strmap_entry::name, strmap_entry::next, zebra_strmap::nmem_ent, zebra_strmap::nmem_str, and zebra_strmap::size.
Referenced by perform_facet_index(), perform_facet_sort(), test1(), and test2().
| zebra_strmap_t zebra_strmap_create | ( | void | ) |
Definition at line 45 of file strmap.c.
References zebra_strmap::entries, zebra_strmap::free_entries, zebra_strmap::hsize, zebra_strmap::nmem_ent, zebra_strmap::nmem_str, and zebra_strmap::size.
Referenced by perform_facet(), test1(), and test2().
| void zebra_strmap_destroy | ( | zebra_strmap_t | st | ) |
Definition at line 61 of file strmap.c.
References zebra_strmap::nmem_ent, and zebra_strmap::nmem_str.
Referenced by perform_facet(), test1(), and test2().
| zebra_strmap_it zebra_strmap_it_create | ( | zebra_strmap_t | st | ) |
Definition at line 148 of file strmap.c.
References zebra_strmap_it_s::ent, zebra_strmap_it_s::hno, and zebra_strmap_it_s::st.
Referenced by term_collect_create(), and test1().
| void zebra_strmap_it_destroy | ( | zebra_strmap_it | it | ) |
Definition at line 157 of file strmap.c.
Referenced by term_collect_create(), and test1().
| const char * zebra_strmap_it_next | ( | zebra_strmap_it | it, |
| void ** | data_buf, | ||
| size_t * | data_len | ||
| ) |
Definition at line 162 of file strmap.c.
References strmap_entry::data_buf, strmap_entry::data_len, ent, zebra_strmap_it_s::ent, zebra_strmap::entries, zebra_strmap_it_s::hno, zebra_strmap::hsize, record_index_entry::next, and zebra_strmap_it_s::st.
Referenced by term_collect_create(), and test1().
| void * zebra_strmap_lookup | ( | zebra_strmap_t | st, |
| const char * | name, | ||
| int | no, | ||
| size_t * | data_len | ||
| ) |
Definition at line 99 of file strmap.c.
References strmap_entry::data_buf, strmap_entry::data_len, hash(), strmap_entry::name, and strmap_entry::next.
Referenced by perform_facet_index(), perform_facet_sort(), test1(), and test2().
| int zebra_strmap_remove | ( | zebra_strmap_t | st, |
| const char * | name | ||
| ) |
Definition at line 118 of file strmap.c.
References zebra_strmap::free_entries, hash(), strmap_entry::name, strmap_entry::next, and zebra_strmap::size.
Referenced by test1().