diff options
| author | Soikk | 2022-05-05 18:45:45 +0200 |
|---|---|---|
| committer | Soikk | 2022-05-05 18:45:45 +0200 |
| commit | 39c0dfbc9c4279e519841afae5c7413b1bdf56d8 (patch) | |
| tree | 8fbe479baf22778911b75ec3d06f05de584b6bce /include/storage.h | |
| parent | 6afe3cc8ec6c009a43950bdbe138cbc2d7a88a4d (diff) | |
| download | soikk-DB-39c0dfbc9c4279e519841afae5c7413b1bdf56d8.tar.xz soikk-DB-39c0dfbc9c4279e519841afae5c7413b1bdf56d8.tar.zst | |
More quality of life changes
Diffstat (limited to 'include/storage.h')
| -rw-r--r-- | include/storage.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/include/storage.h b/include/storage.h new file mode 100644 index 0000000..507c733 --- /dev/null +++ b/include/storage.h @@ -0,0 +1,26 @@ +#ifndef STORAGE_H +#define STORAGE_H + +#include "db.h" + +#define MAXPATH 4096 +#define MAXTAGS 4096 + + +// When intializing the struct, it is recommended +// to also initialize numTags and lenTags +typedef struct{ + char path[MAXPATH]; + char tags[MAXTAGS]; + uint16_t numTags; + uint16_t lenTags; +} row; + + +row *newRow(const char *path); + +void insertTag(row *r, char *tag); + +void removeTag(row *r, char *tag); + +#endif
\ No newline at end of file |
