Add a table entry free function.
This commit is contained in:
parent
72d60855c2
commit
07284d1fb2
|
@ -98,5 +98,10 @@ libab_result libab_table_put(libab_table* table, const char* string, libab_table
|
||||||
* @param table the table to free.
|
* @param table the table to free.
|
||||||
*/
|
*/
|
||||||
void libab_table_free(libab_table* table);
|
void libab_table_free(libab_table* table);
|
||||||
|
/**
|
||||||
|
* Frees the given table entry.
|
||||||
|
* @param entry the entry to free.
|
||||||
|
*/
|
||||||
|
void libab_table_entry_free(libab_table_entry* entry);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -36,3 +36,6 @@ libab_result libab_table_put(libab_table* table, const char* string, libab_table
|
||||||
void libab_table_free(libab_table* table) {
|
void libab_table_free(libab_table* table) {
|
||||||
ht_free(&table->table);
|
ht_free(&table->table);
|
||||||
}
|
}
|
||||||
|
void libab_table_entry_free(libab_table_entry* entry) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user