aboutsummaryrefslogtreecommitdiff
path: root/include/storage.h
blob: a30278fdae7b7c949793e7db8f52b95649f93f9b (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 4094
#define MAXTAGS 4094


// When intializing the struct, it is recommended
// to also initialize numTags and lenTags
typedef struct{
	char path[MAXPATH];
	char tags[MAXTAGS];
	uint16_t lenTags;
	uint16_t numTags;
} row;


row *newRow(const char *path);

void insertTag(row *r, char *tag);

void removeTag(row *r, char *tag);

#endif