43 typedef void (*u_hashset_callback)(
struct u_hashset_item *item,
void *priv);
46 u_hashset_create(
struct u_hashset **out_hashset);
58 u_hashset_find_c_str(
struct u_hashset *hs,
69 u_hashset_erase_str(
struct u_hashset *hs,
const char *str,
size_t length);
72 u_hashset_erase_c_str(
struct u_hashset *hs,
const char *c_str);
82 u_hashset_callback cb,
A embeddable hashset item, note that the string directly follows the u_hashset_item.
Definition: u_hashset.h:36
void u_hashset_clear_and_call_for_each(struct u_hashset *hs, u_hashset_callback cb, void *priv)
First clear the hashset and then call the given callback with each item that was in the hashset...
Definition: u_hashset.cpp:109
Kind of bespoke hashset implementation, where the user is responsible for allocating and freeing the ...
Definition: u_hashset.cpp:24
Header holding common defines.