summaryrefslogtreecommitdiffstats
path: root/apps/tagtree.c
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2009-10-20 21:54:44 +0000
committerThomas Martitz <kugel@rockbox.org>2009-10-20 21:54:44 +0000
commit774bacc692b4d5c7b769bb88d24e182db9e4656f (patch)
tree07c5ed05c9d46145c783bd1de5062731e6babb32 /apps/tagtree.c
parent872852639fc52bcdb2cc8199fed60f81c7cad1f9 (diff)
downloadrockbox-774bacc692b4d5c7b769bb88d24e182db9e4656f.tar.gz
rockbox-774bacc692b4d5c7b769bb88d24e182db9e4656f.tar.bz2
rockbox-774bacc692b4d5c7b769bb88d24e182db9e4656f.zip
Correct wrong usage of event callbacks all over the place. It's not supposed to return anything, and should take a data parameter.
Fixing it because correcting the event api prototypes causes many warnings. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23301 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/tagtree.c')
-rw-r--r--apps/tagtree.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/tagtree.c b/apps/tagtree.c
index 2962d57dac..832a49e359 100644
--- a/apps/tagtree.c
+++ b/apps/tagtree.c
@@ -642,9 +642,10 @@ static int compare(const void *p1, const void *p2)
return strncasecmp(e1->name, e2->name, MAX_PATH);
}
-static void tagtree_buffer_event(struct mp3entry *id3)
+static void tagtree_buffer_event(void *data)
{
struct tagcache_search tcs;
+ struct mp3entry *id3 = (struct mp3entry*)data;
/* Do not gather data unless proper setting has been enabled. */
if (!global_settings.runtimedb)
@@ -671,12 +672,13 @@ static void tagtree_buffer_event(struct mp3entry *id3)
tagcache_search_finish(&tcs);
}
-static void tagtree_track_finish_event(struct mp3entry *id3)
+static void tagtree_track_finish_event(void *data)
{
long playcount;
long playtime;
long lastplayed;
long tagcache_idx;
+ struct mp3entry *id3 = (struct mp3entry*)data;
/* Do not gather data unless proper setting has been enabled. */
if (!global_settings.runtimedb)