aboutsummaryrefslogtreecommitdiff
path: root/bowl.h
diff options
context:
space:
mode:
authorKatharina Fey <kookie@spacekookie.de>2019-07-14 02:00:32 +0100
committerKatharina Fey <kookie@spacekookie.de>2019-07-14 18:47:18 +0100
commitc312e74f95fcfe9bd1e91c092a2d987cb067a075 (patch)
treeb068a2030ff8fdba31cddd505ddbee20d687571c /bowl.h
parent6c9c0502798681d7eaa91c81858d3c113e124676 (diff)
Implementing HASH node `remove_key` function
Diffstat (limited to 'bowl.h')
-rw-r--r--bowl.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/bowl.h b/bowl.h
index ae7efe3..ae1321e 100644
--- a/bowl.h
+++ b/bowl.h
@@ -82,8 +82,11 @@ err_t bowl_swap_idx(struct bowl *, size_t idx, struct bowl *, struct bowl **);
/// Remove a bowl node by it's pointer reference
err_t bowl_remove(struct bowl *, struct bowl *);
+/// Remove a specific key (relevant for HASH nodes)
+err_t bowl_remove_key(struct bowl *, char *key, struct bowl **);
+
/// Removing a bowl node with a key
-err_t bowl_remove_key(struct bowl *, size_t idx, struct bowl **);
+err_t bowl_remove_idx(struct bowl *, size_t idx, struct bowl **);
/// Cascade-free memory from a bowl node
err_t bowl_free(struct bowl *);