blob: 20cb329445b6f77c46dfae057b3b53729b8efb86 (
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
|
#ifndef STORAGE_H
#define STORAGE_H
#include "db.h"
#define MAXPATH 4096
#define MAXTAGS 4096
typedef struct{
char path[MAXPATH];
char tags[MAXTAGS];
} row;
void split(const char *src, char sep, char ***arr, int *len);
void swapWords(char ***arr, int a, int b);
char *normalizeTag(char *tag);
void insertTag(row *r, char *tag);
#endif
|