blob: 507c733992b905ae8a386cd58cefd57043f415e8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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
|