]>
git.ipfire.org Git - thirdparty/kmod.git/blob - libkmod/libkmod-hash.h
ca0af05724851c21fc61aa9143dd84da3af4b050
8 const struct hash
*hash
;
13 struct hash
*hash_new(unsigned int n_buckets
, void (*free_value
)(void *value
));
14 void hash_free(struct hash
*hash
);
15 int hash_add(struct hash
*hash
, const char *key
, const void *value
);
16 int hash_add_unique(struct hash
*hash
, const char *key
, const void *value
);
17 int hash_del(struct hash
*hash
, const char *key
);
18 void *hash_find(const struct hash
*hash
, const char *key
);
19 unsigned int hash_get_count(const struct hash
*hash
);
20 void hash_iter_init(const struct hash
*hash
, struct hash_iter
*iter
);
21 bool hash_iter_next(struct hash_iter
*iter
, const char **key
,