45                return (
const char *)&
this[1];
 
   52typedef void (*u_hashset_callback)(
struct u_hashset_item *item, 
void *priv);
 
   55u_hashset_create(
struct u_hashset **out_hashset);
 
   67u_hashset_create_and_insert_str(
struct u_hashset *hs, 
const char *str, 
size_t length, 
struct u_hashset_item **out_item);
 
   79u_hashset_erase_str(
struct u_hashset *hs, 
const char *str, 
size_t length);
 
   82u_hashset_erase_c_str(
struct u_hashset *hs, 
const char *c_str);
 
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:151
 
A embeddable hashset item, note that the string directly follows the u_hashset_item.
Definition: u_hashset.h:37
 
Kind of bespoke hashset implementation, where the user is responsible for allocating and freeing the ...
Definition: u_hashset.cpp:26
 
Header holding common defines.