diff options
| author | Soikk | 2022-08-06 21:46:45 +0200 |
|---|---|---|
| committer | Soikk | 2022-08-06 21:46:45 +0200 |
| commit | f9a7d9cd8a7e603c89d4cc5d98d7f694cc217d85 (patch) | |
| tree | 647b02d6ebabbafed7604da36685b5d17e0c825c /include/database.h | |
| parent | 0e95d2c61da7b7fbce76b0633313128b7440136e (diff) | |
| download | soikk-DB-f9a7d9cd8a7e603c89d4cc5d98d7f694cc217d85.tar.xz soikk-DB-f9a7d9cd8a7e603c89d4cc5d98d7f694cc217d85.tar.zst | |
Refactored database. Replaced htable with ctable (same thing different name). Introduced AVL tree for hashes.
Diffstat (limited to 'include/database.h')
| -rw-r--r-- | include/database.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/database.h b/include/database.h index bcade34..5f2d99d 100644 --- a/include/database.h +++ b/include/database.h @@ -7,8 +7,8 @@ typedef struct database{ char name[32]; ltable *lfiles, *ltags; - htable *hfiles, *htags; - htable *fcount, *tcount; + ctable *cfiles, *ctags; + tree hfiles, htags; mtable *map; } database; @@ -33,6 +33,8 @@ int searchTag(database *db, char *tag, uint64_t n, uint64_t **r, uint64_t *rl); void printDatabase(database *db); +void debugAVLtree(node *n); + void debugDatabase(database *db); #endif |
