diff options
Diffstat (limited to 'ecp/src/ecp/ht.h')
-rw-r--r-- | ecp/src/ecp/ht.h | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/ecp/src/ecp/ht.h b/ecp/src/ecp/ht.h index cf33454..31ca698 100644 --- a/ecp/src/ecp/ht.h +++ b/ecp/src/ecp/ht.h @@ -1,7 +1,14 @@ -void *ecp_ht_create_keys(void); -void *ecp_ht_create_addrs(void); +ecp_ht_table_t *ecp_ht_create_keys(void); +ecp_ht_table_t *ecp_ht_create_addrs(void); -void ecp_ht_destroy(void *h); -int ecp_ht_insert(void *h, void *k, ECPConnection *v); -ECPConnection *ecp_ht_remove(void *h, void *k); -ECPConnection *ecp_ht_search(void *h, void *k); +void ecp_ht_destroy(ecp_ht_table_t *h); +int ecp_ht_insert(ecp_ht_table_t *h, void *k, ECPConnection *v); +ECPConnection *ecp_ht_remove(ecp_ht_table_t *h, void *k); +ECPConnection *ecp_ht_search(ecp_ht_table_t *h, void *k); + +void ecp_ht_itr_create(ecp_ht_itr_t *i, ecp_ht_table_t *h); +int ecp_ht_itr_advance(ecp_ht_itr_t *i); +int ecp_ht_itr_remove(ecp_ht_itr_t *i); +int ecp_ht_itr_search(ecp_ht_itr_t *i, void *k); +void *ecp_ht_itr_key(ecp_ht_itr_t *i); +ECPConnection *ecp_ht_itr_value(ecp_ht_itr_t *i); |