summaryrefslogtreecommitdiffstats
path: root/apps/tagcache.h
diff options
context:
space:
mode:
authorMiika Pekkarinen <miipekk@ihme.org>2006-07-16 15:04:46 +0000
committerMiika Pekkarinen <miipekk@ihme.org>2006-07-16 15:04:46 +0000
commit0042201bb387398494e75f24f69d4039251e59c9 (patch)
tree76830aadb907d85d41d6ae65dfa141742ed2fa13 /apps/tagcache.h
parent11e229ffa6612d7e97e51bfa4ed399f4f63bd4f6 (diff)
downloadrockbox-0042201bb387398494e75f24f69d4039251e59c9.tar.gz
rockbox-0042201bb387398494e75f24f69d4039251e59c9.tar.bz2
rockbox-0042201bb387398494e75f24f69d4039251e59c9.zip
Initial changelog support (only export, no import yet) and added
an option to search by filename. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10219 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/tagcache.h')
-rw-r--r--apps/tagcache.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/apps/tagcache.h b/apps/tagcache.h
index 04f9567936..e655088cc2 100644
--- a/apps/tagcache.h
+++ b/apps/tagcache.h
@@ -63,9 +63,10 @@ enum tag_type { tag_artist = 0, tag_album, tag_genre, tag_title,
#define TAGCACHE_MAX_CLAUSES 10
/* Tag database files. */
-#define TAGCACHE_FILE_TEMP ROCKBOX_DIR "/tagcache_tmp.tcd"
-#define TAGCACHE_FILE_MASTER ROCKBOX_DIR "/tagcache_idx.tcd"
-#define TAGCACHE_FILE_INDEX ROCKBOX_DIR "/tagcache_%d.tcd"
+#define TAGCACHE_FILE_TEMP ROCKBOX_DIR "/tagcache_tmp.tcd"
+#define TAGCACHE_FILE_MASTER ROCKBOX_DIR "/tagcache_idx.tcd"
+#define TAGCACHE_FILE_INDEX ROCKBOX_DIR "/tagcache_%d.tcd"
+#define TAGCACHE_FILE_CHANGELOG ROCKBOX_DIR "/tagcache_changelog.txt"
/* Flags */
#define FLAG_DELETED 0x0001 /* Entry has been removed from db */
@@ -137,6 +138,7 @@ bool tagcache_retrieve(struct tagcache_search *tcs, int idxid,
char *buf, long size);
void tagcache_search_finish(struct tagcache_search *tcs);
long tagcache_get_numeric(const struct tagcache_search *tcs, int tag);
+bool tagcache_create_changelog(struct tagcache_search *tcs);
bool tagcache_modify_numeric_entry(struct tagcache_search *tcs,
int tag, long data);