summaryrefslogtreecommitdiff
path: root/apps/tagtree.c
diff options
context:
space:
mode:
authorMiika Pekkarinen <miipekk@ihme.org>2006-07-20 12:19:31 +0000
committerMiika Pekkarinen <miipekk@ihme.org>2006-07-20 12:19:31 +0000
commitcb8c79541504ce8a4e1d4243ccec826707e30544 (patch)
tree66c065035b31fc480db2fe3e83daf1672829a87a /apps/tagtree.c
parent7b5af8c045d1db6e805981e1c6d1b32de200e3f3 (diff)
downloadrockbox-cb8c79541504ce8a4e1d4243ccec826707e30544.zip
rockbox-cb8c79541504ce8a4e1d4243ccec826707e30544.tar.gz
rockbox-cb8c79541504ce8a4e1d4243ccec826707e30544.tar.bz2
rockbox-cb8c79541504ce8a4e1d4243ccec826707e30544.tar.xz
Support importing runtimedb data from ascii files.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10260 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/tagtree.c')
-rw-r--r--apps/tagtree.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/apps/tagtree.c b/apps/tagtree.c
index f5c100f..7321e9d 100644
--- a/apps/tagtree.c
+++ b/apps/tagtree.c
@@ -395,6 +395,10 @@ static void tagtree_unbuffer_event(struct mp3entry *id3, bool last_track)
playcount++;
+ lastplayed = tagcache_increase_serial();
+ if (lastplayed < 0)
+ return;
+
/* Ignore the last 15s (crossfade etc.) */
playtime += MIN(id3->length, id3->elapsed + 15 * 1000);
@@ -427,6 +431,17 @@ bool tagtree_export(void)
return false;
}
+bool tagtree_import(void)
+{
+ gui_syncsplash(0, true, str(LANG_WAIT));
+ if (!tagcache_import_changelog())
+ {
+ gui_syncsplash(HZ*2, true, str(LANG_FAILED));
+ }
+
+ return false;
+}
+
void tagtree_init(void)
{
int fd;