Add a table entry free function.

This commit is contained in:
Danila Fedorin 2018-02-17 19:53:33 -08:00
parent 72d60855c2
commit 07284d1fb2
2 changed files with 8 additions and 0 deletions

View File

@ -98,5 +98,10 @@ libab_result libab_table_put(libab_table* table, const char* string, libab_table
* @param table the table to free.
*/
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

View File

@ -36,3 +36,6 @@ libab_result libab_table_put(libab_table* table, const char* string, libab_table
void libab_table_free(libab_table* table) {
ht_free(&table->table);
}
void libab_table_entry_free(libab_table_entry* entry) {
}