diff options
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 |
