netdata/netdata

View on GitHub
src/aclk/mqtt_websockets/c_rhash/c_rhash_internal.h

Summary

Maintainability
Test Coverage
// 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;
};