From 0042201bb387398494e75f24f69d4039251e59c9 Mon Sep 17 00:00:00 2001 From: Miika Pekkarinen Date: Sun, 16 Jul 2006 15:04:46 +0000 Subject: 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 --- apps/tagtree.c | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'apps/tagtree.c') diff --git a/apps/tagtree.c b/apps/tagtree.c index 396248d7ce..f5c100f6ea 100644 --- a/apps/tagtree.c +++ b/apps/tagtree.c @@ -137,6 +137,7 @@ static int get_tag(int *tag) MATCH(tag, buf, "genre", tag_genre); MATCH(tag, buf, "length", tag_length); MATCH(tag, buf, "title", tag_title); + MATCH(tag, buf, "filename", tag_filename); MATCH(tag, buf, "tracknum", tag_tracknumber); MATCH(tag, buf, "year", tag_year); MATCH(tag, buf, "playcount", tag_playcount); @@ -415,6 +416,17 @@ static void tagtree_unbuffer_event(struct mp3entry *id3, bool last_track) tagcache_search_finish(&tcs); } +bool tagtree_export(void) +{ + gui_syncsplash(0, true, str(LANG_WAIT)); + if (!tagcache_create_changelog(&tcs)) + { + gui_syncsplash(HZ*2, true, str(LANG_FAILED)); + } + + return false; +} + void tagtree_init(void) { int fd; @@ -553,7 +565,7 @@ int retrieve_entries(struct tree_context *c, struct tagcache_search *tcs, current_entry_count = 0; c->dirfull = false; - if (tag != tag_title) + if (tag != tag_title && tag != tag_filename) { if (offset == 0) { @@ -576,7 +588,7 @@ int retrieve_entries(struct tree_context *c, struct tagcache_search *tcs, dptr->newtable = navibrowse; dptr->extraseek = tcs->result_seek; - if (tag == tag_title) + if (tag == tag_title || tag == tag_filename) dptr->newtable = playtrack; if (!tcs->ramsearch || fmt->valid) -- cgit v1.2.3