diff options
Diffstat (limited to 'src/aclk/mqtt_websockets/c_rhash/c_rhash_internal.h')
-rw-r--r-- | src/aclk/mqtt_websockets/c_rhash/c_rhash_internal.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/aclk/mqtt_websockets/c_rhash/c_rhash_internal.h b/src/aclk/mqtt_websockets/c_rhash/c_rhash_internal.h new file mode 100644 index 000000000..20f741076 --- /dev/null +++ b/src/aclk/mqtt_websockets/c_rhash/c_rhash_internal.h @@ -0,0 +1,19 @@ +// Copyright: SPDX-License-Identifier: GPL-3.0-only + +#include "c_rhash.h" + +struct bin_item { + uint8_t key_type:4; + void *key; + uint8_t value_type:4; + void *value; + + struct bin_item *next; +}; + +typedef struct bin_item *c_rhash_bin; + +struct c_rhash_s { + size_t bin_count; + c_rhash_bin *bins; +}; |