6#ifndef NETLINK_HASHTABLE_H_
7#define NETLINK_HASHTABLE_H_
19 struct nl_object * obj;
29#define NL_MAX_HASH_ENTRIES 1024
36 struct nl_object *obj);
38 struct nl_object *obj);
41 struct nl_object *obj);
42extern uint32_t nl_hash(
void *k,
size_t length,
int nl_hash_table_del(nl_hash_table_t *ht, struct nl_object *obj)
Remove object from hashtable.
nl_hash_table_t * nl_hash_table_alloc(int size)
Allocate hashtable.
void nl_hash_table_free(nl_hash_table_t *ht)
Free hashtable including all nodes.
int nl_hash_table_add(nl_hash_table_t *ht, struct nl_object *obj)
Add object to hashtable.
struct nl_object * nl_hash_table_lookup(nl_hash_table_t *ht, struct nl_object *obj)
Lookup identical object in hashtable.