aboutsummaryrefslogtreecommitdiff
path: root/include/database.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/database.h')
-rw-r--r--include/database.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/include/database.h b/include/database.h
index 5f2d99d..1ae65b6 100644
--- a/include/database.h
+++ b/include/database.h
@@ -15,10 +15,6 @@ typedef struct database{
database *newDatabase(char *name);
-database *loadDatabase(const char* path);
-
-int storeDatabase(database *db, const char *path);
-
uint64_t addFile(database *db, char *file);
uint64_t addTag(database *db, char *tag);
@@ -27,10 +23,18 @@ int addFileTag(database *db, char *file, char *tag);
int addFileTags(database *db, char *file, int ntags, ...);
+int removeFile(database *db, char *file);
+
+int removeTag(database *db, char *tag);
+
int searchFile(database *db, char *file, uint64_t n, uint64_t **r, uint64_t *rl);
int searchTag(database *db, char *tag, uint64_t n, uint64_t **r, uint64_t *rl);
+int storeDatabase(database *db, const char *path);
+
+database *loadDatabase(const char* path);
+
void printDatabase(database *db);
void debugAVLtree(node *n);