master
h 19 lines 306 Bytes
Raw
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 #include "c_rhash.h"
4
5 struct bin_item {
6 uint8_t key_type:4;
7 void *key;
8 uint8_t value_type:4;
9 void *value;
10
11 struct bin_item *next;
12 };
13
14 typedef struct bin_item *c_rhash_bin;
15
16 struct c_rhash_s {
17 size_t bin_count;
18 c_rhash_bin *bins;
19 };