25 #ifndef ROHC_HASHTABLE_H 26 #define ROHC_HASHTABLE_H 41 } __attribute__((packed));
58 __attribute((warn_unused_result,
nonnull(1)));
64 const void *
const key,
66 __attribute((
nonnull(1, 2, 3)));
69 const void *
const key)
70 __attribute((warn_unused_result,
nonnull(1, 2)));
73 const void *
const key)
struct hashlist * prev_cr
Definition: hashtable.h:38
uint8_t key[]
Definition: hashtable.h:40
struct hashlist ** table
Definition: hashtable.h:50
size_t full_key_len
Definition: hashtable.h:48
bool hashtable_new(struct hashtable *const hashtable, const size_t key_len, const size_t size) __attribute((warn_unused_result
struct hashlist * next
Definition: hashtable.h:37
void hashtable_del(struct hashtable *const hashtable, const void *const key) __attribute((nonnull(1
void hashtable_free(struct hashtable *const hashtable) __attribute((nonnull(1)))
Definition: hashtable.c:52
void hashtable_add(struct hashtable *const hashtable, const void *const key, void *const elem) __attribute((nonnull(1
void void * hashtable_get(const struct hashtable *const hashtable, const void *const key) __attribute((warn_unused_result
size_t key_len
Definition: hashtable.h:47
char key[16]
Definition: hashtable.h:51
uint64_t mask
Definition: hashtable.h:49
Definition: hashtable.h:34
struct hashlist * next_cr
Definition: hashtable.h:39
Definition: hashtable.h:45
struct hashlist * prev
Definition: hashtable.h:36