From c84c73df00e5e1710d84fdb4be6352d849da8f2b Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 8 Oct 2008 10:49:05 +0200 Subject: directory: converted typedef Directory to struct directory The struct can be forward-declared by other headers, which relaxes the header dependencies. --- src/song.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/song.c') diff --git a/src/song.c b/src/song.c index 03f65dd0d..f8a949578 100644 --- a/src/song.c +++ b/src/song.c @@ -29,7 +29,7 @@ #include "os_compat.h" -static Song * song_alloc(const char *url, Directory *parent) +static Song * song_alloc(const char *url, struct directory *parent) { size_t urllen; Song *song; @@ -46,7 +46,7 @@ static Song * song_alloc(const char *url, Directory *parent) return song; } -Song *newSong(const char *url, Directory * parentDir) +Song *newSong(const char *url, struct directory *parentDir) { Song *song; assert(*url); @@ -160,7 +160,7 @@ static int matchesAnMpdTagItemKey(char *buffer, int *itemType) return 0; } -void readSongInfoIntoList(FILE * fp, Directory * parentDir) +void readSongInfoIntoList(FILE * fp, struct directory * parentDir) { char buffer[MPD_PATH_MAX + 1024]; int bufferSize = MPD_PATH_MAX + 1024; -- cgit v1.2.3