1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright 2019, Olivier MATZ <zer0@droids-corp.org>
5 #ifndef ECOLI_HTABLE_PRIVATE_
6 #define ECOLI_HTABLE_PRIVATE_
8 #include <ecoli_htable.h>
10 struct ec_htable_elt {
15 ec_htable_elt_free_t free;
16 unsigned int refcount;
19 struct ec_htable_elt_ref {
20 TAILQ_ENTRY(ec_htable_elt_ref) next;
21 TAILQ_ENTRY(ec_htable_elt_ref) hnext;
22 struct ec_htable_elt *elt;
25 TAILQ_HEAD(ec_htable_elt_ref_list, ec_htable_elt_ref);
30 struct ec_htable_elt_ref_list list;
31 struct ec_htable_elt_ref_list *table;