28 #define YACHT_NO_KEY ((int)-1)
31 #define YACHT_DELETED ((int)-2)
42 bool Yacht_Set(
struct yacht *y,
int key,
void *value,
void **old_value);
bool Yacht_Get(struct yacht *y, int key, void **value)
Get KEY from the table, setting *value if found.
void Yacht_Free(struct yacht *y, Yacht_Free_cb *cb, void *udata)
Free the table.
bool Yacht_Remove(struct yacht *y, int key, void **old_value)
Remove KEY from the table.
bool Yacht_Member(struct yacht *y, int key)
Check if KEY is in the table.
void( Yacht_Free_cb)(void *value, void *udata)
Callback to free values associated with keys.
bool Yacht_Set(struct yacht *y, int key, void *value, void **old_value)
Set KEY to VALUE in the table.
struct yacht * Yacht_Init(uint8_t sz2)
Init a hash table with approx.