diff options
author | Max Kellermann <max@duempel.org> | 2008-09-07 13:48:24 +0200 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2008-09-09 01:11:23 -0700 |
commit | dcc575a3a877e342e895df9fc99108028151cc6a (patch) | |
tree | 27fd740dbd188cd2f437327fc1555595bd8532a8 /src/tagTracker.c | |
parent | 3884c89a2ec5378f54ebbaf4402d9d5438e80b92 (diff) | |
download | mpd-dcc575a3a877e342e895df9fc99108028151cc6a.tar.gz mpd-dcc575a3a877e342e895df9fc99108028151cc6a.tar.xz mpd-dcc575a3a877e342e895df9fc99108028151cc6a.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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tagTracker.c b/src/tagTracker.c index bea58ae4c..e470f85ea 100644 --- a/src/tagTracker.c +++ b/src/tagTracker.c @@ -38,7 +38,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; |