aboutsummaryrefslogtreecommitdiff
path: root/storage.h
diff options
context:
space:
mode:
authorSoikk2022-04-29 03:28:34 +0200
committerSoikk2022-04-29 03:28:34 +0200
commit2b1838ecf30fd91575a71b877965ed3363356138 (patch)
treed723d47caabe42f8ec02576177c0e203dd4aa5e5 /storage.h
parent8a2981d9137357d4b2c86e8037e4f2ca9cea5578 (diff)
downloadsoikk-DB-2b1838ecf30fd91575a71b877965ed3363356138.tar.xz
soikk-DB-2b1838ecf30fd91575a71b877965ed3363356138.tar.zst
Add or remove tags
Diffstat (limited to 'storage.h')
-rw-r--r--storage.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/storage.h b/storage.h
index 20cb329..b37bdb8 100644
--- a/storage.h
+++ b/storage.h
@@ -10,9 +10,12 @@
typedef struct{
char path[MAXPATH];
char tags[MAXTAGS];
+ int numTags;
} row;
+row *newRow(const char *path);
+
void split(const char *src, char sep, char ***arr, int *len);
void swapWords(char ***arr, int a, int b);
@@ -21,4 +24,6 @@ char *normalizeTag(char *tag);
void insertTag(row *r, char *tag);
+void removeTag(row *r, char *tag);
+
#endif \ No newline at end of file