From 44fa7d3682ff4e102bb7a228e9e5a100a050fea5 Mon Sep 17 00:00:00 2001 From: bpc2003 Date: Tue, 15 Apr 2025 15:21:29 -0400 Subject: Updated delkeys and setkeys to take multiple keys --- src/lib/mdb.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/lib/mdb.h') diff --git a/src/lib/mdb.h b/src/lib/mdb.h index b5dc768..a53f4b5 100644 --- a/src/lib/mdb.h +++ b/src/lib/mdb.h @@ -22,9 +22,10 @@ typedef struct { tabidx_t getkey(tablist_t *list, int id, char *key); // Batch Operations +// TODO: make setkeys and delkeys take char ** and int int *getkeys(tablist_t *list, int id); // TODO: Reimplement getkeys -int setkeys(tablist_t **list, int id, char *pair); -int delkeys(tablist_t *list, int id, char *key); +int setkeys(tablist_t **list, int id, char **pairs, int len); +int delkeys(tablist_t *list, int id, char **keys, int len); // file operations tablist_t *readdb(char *filename); -- cgit v1.2.3