c_rhash_internal.h 314 B

12345678910111213141516171819
  1. // Copyright: SPDX-License-Identifier: GPL-3.0-only
  2. #include "c_rhash.h"
  3. struct bin_item {
  4. uint8_t key_type:4;
  5. void *key;
  6. uint8_t value_type:4;
  7. void *value;
  8. struct bin_item *next;
  9. };
  10. typedef struct bin_item *c_rhash_bin;
  11. struct c_rhash_s {
  12. size_t bin_count;
  13. c_rhash_bin *bins;
  14. };