6#ifndef NETLINK_HASHTABLE_H_
7#define NETLINK_HASHTABLE_H_
19 struct nl_object *obj;
25 nl_hash_node_t **nodes;
29#define NL_MAX_HASH_ENTRIES 1024
39 struct nl_object *obj);
40extern uint32_t nl_hash(
void *k,
size_t length, uint32_t initval);
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.