diff options
author | bpc2003 <wpesfriendnva@gmail.com> | 2025-04-15 15:21:29 -0400 |
---|---|---|
committer | bpc2003 <wpesfriendnva@gmail.com> | 2025-04-15 15:21:29 -0400 |
commit | 44fa7d3682ff4e102bb7a228e9e5a100a050fea5 (patch) | |
tree | 23f020e97aaf2e7e6b8e7be88562831972ec4580 /src/lib/mdb.h | |
parent | 0abf0ad19a09a7d643d9d64adcdb4d9b4d7fdbc1 (diff) |
Updated delkeys and setkeys to take multiple keys
Diffstat (limited to 'src/lib/mdb.h')
-rw-r--r-- | src/lib/mdb.h | 5 |
1 files changed, 3 insertions, 2 deletions
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); |