summaryrefslogtreecommitdiffstats
path: root/mqtt_websockets/c_rhash/src/c_rhash_internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'mqtt_websockets/c_rhash/src/c_rhash_internal.h')
-rw-r--r--mqtt_websockets/c_rhash/src/c_rhash_internal.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/mqtt_websockets/c_rhash/src/c_rhash_internal.h b/mqtt_websockets/c_rhash/src/c_rhash_internal.h
new file mode 100644
index 000000000..aefa9453c
--- /dev/null
+++ b/mqtt_websockets/c_rhash/src/c_rhash_internal.h
@@ -0,0 +1,17 @@
+#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;
+};