summaryrefslogtreecommitdiff
path: root/apps/tagcache.c
diff options
context:
space:
mode:
authorMiika Pekkarinen <miipekk@ihme.org>2006-10-24 16:20:48 +0000
committerMiika Pekkarinen <miipekk@ihme.org>2006-10-24 16:20:48 +0000
commit02df5a80680c8b7bd9e89e93a675cb8e2b3c1c3d (patch)
tree7d90144fbfa1755dfb20b8703d04d5531d6247e5 /apps/tagcache.c
parent748036bb70f6c57c4ecb473b7391e90bacade427 (diff)
downloadrockbox-02df5a80680c8b7bd9e89e93a675cb8e2b3c1c3d.zip
rockbox-02df5a80680c8b7bd9e89e93a675cb8e2b3c1c3d.tar.gz
rockbox-02df5a80680c8b7bd9e89e93a675cb8e2b3c1c3d.tar.bz2
rockbox-02df5a80680c8b7bd9e89e93a675cb8e2b3c1c3d.tar.xz
Allow all tag type in formatting string. Included example with
tagnavi.config. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11324 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/tagcache.c')
-rw-r--r--apps/tagcache.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/tagcache.c b/apps/tagcache.c
index 3ba1f21..ffafe5b 100644
--- a/apps/tagcache.c
+++ b/apps/tagcache.c
@@ -1288,7 +1288,7 @@ bool tagcache_get_next(struct tagcache_search *tcs)
}
bool tagcache_retrieve(struct tagcache_search *tcs, int idxid,
- char *buf, long size)
+ int tag, char *buf, long size)
{
struct index_entry idx;
@@ -1296,7 +1296,7 @@ bool tagcache_retrieve(struct tagcache_search *tcs, int idxid,
if (!get_index(tcs->masterfd, idxid, &idx, true))
return false;
- return retrieve(tcs, &idx, tcs->type, buf, size);
+ return retrieve(tcs, &idx, tag, buf, size);
}
#if 0
@@ -2860,7 +2860,7 @@ bool tagcache_create_changelog(struct tagcache_search *tcs)
}
tcs->type = j;
- tagcache_retrieve(tcs, i, buf, sizeof buf);
+ tagcache_retrieve(tcs, i, tcs->type, buf, sizeof buf);
write_tag(clfd, tagcache_tag_to_str(j), buf);
}