summaryrefslogtreecommitdiffstats
path: root/src/data.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/data.h')
-rw-r--r--src/data.h18
1 files changed, 11 insertions, 7 deletions
diff --git a/src/data.h b/src/data.h
index e803162..84b172f 100644
--- a/src/data.h
+++ b/src/data.h
@@ -7,18 +7,22 @@ void data_save(void);
void data_free(void);
int get_fid(const char *path);
+int track_fid_compare(struct link *a, struct link *b);
void index_update(struct tag *tag);
+bool tracks_update(struct tag *tag);
void tracks_load(struct tag *tag);
void tracks_save(struct tag *tag);
-void rm_file(const char *path);
-void copy_file(const char *dst, const char *src);
-void move_file(const char *dst, const char *src);
+bool make_dir(const char *path);
+bool rm_dir(const char *path, bool recursive);
+bool rm_file(const char *path);
+bool copy_file(const char *dst, const char *src);
+bool move_file(const char *dst, const char *src);
-struct tag *tag_find(const wchar_t *query);
+struct tag *tag_find(const char *query);
extern const char *datadir;
-extern struct list tracks;
-extern struct list tags;
-extern struct list tags_sel;
+extern struct list tracks; /* struct ref */
+extern struct list tags; /* struct tag */
+extern struct list tags_sel; /* struct ref */