diff options
| author | Soikk | 2022-08-13 18:49:30 +0200 |
|---|---|---|
| committer | Soikk | 2022-08-13 18:49:30 +0200 |
| commit | 4b721332d570f53719894af922c22b7cba146b18 (patch) | |
| tree | 9c5b8f75345310cd7f2479fca0ebaf20c7ca47dc /include/storage.h | |
| parent | 32dd785f881cf3ba6c1c6806cd3af3cbf56437c4 (diff) | |
| download | soikk-DB-4b721332d570f53719894af922c22b7cba146b18.tar.xz soikk-DB-4b721332d570f53719894af922c22b7cba146b18.tar.zst | |
Added primitive repl, delete functions for database and remove tag from file function.
Diffstat (limited to 'include/storage.h')
| -rw-r--r-- | include/storage.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/storage.h b/include/storage.h index 8edf8b0..e46c9a8 100644 --- a/include/storage.h +++ b/include/storage.h @@ -92,6 +92,8 @@ typedef node* tree; ltable *newLtable(uint64_t size); +int deleteLtable(ltable **lt); + int insertLtable(ltable *lt, char *str); int removeLtable(ltable *lt, char *str); @@ -106,6 +108,8 @@ ltable *loadLtable(FILE *fp); ctable *newCtable(uint64_t size); +int deleteCtable(ctable **ct); + int insertCtable(ctable *ct, uint64_t n); int removeCtable(ctable *ct, uint64_t n); @@ -120,6 +124,8 @@ ctable *loadCtable(FILE *fp); mtable *newMtable(uint64_t size); +int deleteMtable(mtable **mt); + int insertMtable(mtable *mt, relation r); int removeMtable(mtable *mt, relation r); @@ -138,6 +144,8 @@ mtable *loadMtable(FILE *fp); node *newNode(uint64_t h, uint64_t i); +int deleteTree(tree *root); + node *insertNode(node *r, uint64_t h, uint64_t i); node *removeNode(node *r, uint64_t h); |
