Code

filelist: filelist_find_song() returns position instead of pointer
authorMax Kellermann <max@duempel.org>
Tue, 18 Nov 2008 20:51:28 +0000 (21:51 +0100)
committerMax Kellermann <max@duempel.org>
Tue, 18 Nov 2008 20:51:28 +0000 (21:51 +0100)
commite12ebb484bf369ea425e93521d99cc6813996e4e
tree1050c03b3a84055c5d5334459034927d25c1e6e8
parent17a8acbf69f4c6649f274ab506a0bb01c00b7a1a
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.
src/filelist.c
src/filelist.h
src/screen_browser.c