aboutsummaryrefslogtreecommitdiffstats
path: root/src/filelist.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-11-18 21:51:28 +0100
committerMax Kellermann <max@duempel.org>2008-11-18 21:51:28 +0100
commite12ebb484bf369ea425e93521d99cc6813996e4e (patch)
tree1050c03b3a84055c5d5334459034927d25c1e6e8 /src/filelist.h
parent17a8acbf69f4c6649f274ab506a0bb01c00b7a1a (diff)
downloadmpd-e12ebb484bf369ea425e93521d99cc6813996e4e.tar.gz
mpd-e12ebb484bf369ea425e93521d99cc6813996e4e.tar.xz
mpd-e12ebb484bf369ea425e93521d99cc6813996e4e.zip
filelist: filelist_find_song() returns position instead of pointer
Making the function return the index makes it more flexible: those who want the pointer can use filelist_get(), and the others may use the index for other purposes.
Diffstat (limited to 'src/filelist.h')
-rw-r--r--src/filelist.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/filelist.h b/src/filelist.h
index d7d4dff88..bc467fb65 100644
--- a/src/filelist.h
+++ b/src/filelist.h
@@ -73,7 +73,7 @@ filelist_move(struct filelist *filelist, struct filelist *from);
void
filelist_sort(struct filelist *filelist, GCompareFunc compare_func);
-struct filelist_entry *
+int
filelist_find_song(struct filelist *flist, const struct mpd_song *song);
int