aboutsummaryrefslogtreecommitdiffstats
path: root/src/tagTracker.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-09-07 13:48:24 +0200
committerMax Kellermann <max@duempel.org>2008-09-07 13:48:24 +0200
commit528be8a0a9b8f9978b3968ab855e69a7ec2935d4 (patch)
treeb7374d05e21cd7966ef93fca41cf059f147ce7b1 /src/tagTracker.c
parentd8ef33b71025decd52eaec5bb8417ad8e6dff873 (diff)
downloadmpd-528be8a0a9b8f9978b3968ab855e69a7ec2935d4.tar.gz
mpd-528be8a0a9b8f9978b3968ab855e69a7ec2935d4.tar.xz
mpd-528be8a0a9b8f9978b3968ab855e69a7ec2935d4.zip
directory: don't pass fd to traverseAllIn() callbacks
Database traversal should be generic, and not bound to a client connection. This is the first step: no file descriptor for the callback functions forEachSong() and forEachDir(). If a callback needs the file descriptor, it has to be passed in the void*data pointer somehow; some callbacks might need a new struct for passing more than one parameter. This might look a bit cumbersome right now, but our goal is to have a clean API.
Diffstat (limited to 'src/tagTracker.c')
-rw-r--r--src/tagTracker.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tagTracker.c b/src/tagTracker.c
index e6dc6fbe6..d6bef6c77 100644
--- a/src/tagTracker.c
+++ b/src/tagTracker.c
@@ -37,7 +37,7 @@ struct visited {
static struct visited *visited_heads[TAG_NUM_OF_ITEM_TYPES];
static unsigned num_visited[TAG_NUM_OF_ITEM_TYPES];
-static int visit_tag_items(int fd mpd_unused, Song *song, void *data)
+static int visit_tag_items(Song *song, void *data)
{
enum tag_type type = (enum tag_type)(size_t)data;
unsigned i;