diff options
Diffstat (limited to '')
-rw-r--r-- | src/directory.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/directory.c b/src/directory.c index 75dae22dd..5e8f89f31 100644 --- a/src/directory.c +++ b/src/directory.c @@ -17,7 +17,7 @@ */ #include "directory.h" - +#include "song.h" #include "conf.h" #include "log.h" #include "ls.h" @@ -448,7 +448,7 @@ int readDirectoryDB(void) static int traverseAllInSubDirectory(struct directory * directory, - int (*forEachSong) (Song *, void *), + int (*forEachSong) (struct song *, void *), int (*forEachDir) (struct directory *, void *), void *data) { @@ -474,13 +474,13 @@ traverseAllInSubDirectory(struct directory * directory, int traverseAllIn(const char *name, - int (*forEachSong) (Song *, void *), + int (*forEachSong) (struct song *, void *), int (*forEachDir) (struct directory *, void *), void *data) { struct directory *directory; if ((directory = getDirectory(name)) == NULL) { - Song *song; + struct song *song; if ((song = getSongFromDB(name)) && forEachSong) { return forEachSong(song, data); } @@ -499,9 +499,10 @@ void directory_init(void) stats.dbPlayTime = sumSongTimesIn(NULL); } -Song *getSongFromDB(const char *file) +struct song * +getSongFromDB(const char *file) { - Song *song = NULL; + struct song *song = NULL; struct directory *directory; char *dir = NULL; char *duplicated = xstrdup(file); |