aboutsummaryrefslogtreecommitdiffstats
path: root/src/song.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-10-08 10:49:05 +0200
committerEric Wong <normalperson@yhbt.net>2008-10-11 19:21:47 -0700
commitc84c73df00e5e1710d84fdb4be6352d849da8f2b (patch)
tree36cb3f7a94333ccc730e11d9f213761bc630cf23 /src/song.c
parentb5d3970c075987d7439e2b60ea043606f46a3bab (diff)
downloadmpd-c84c73df00e5e1710d84fdb4be6352d849da8f2b.tar.gz
mpd-c84c73df00e5e1710d84fdb4be6352d849da8f2b.tar.xz
mpd-c84c73df00e5e1710d84fdb4be6352d849da8f2b.zip
directory: converted typedef Directory to struct directory
The struct can be forward-declared by other headers, which relaxes the header dependencies.
Diffstat (limited to '')
-rw-r--r--src/song.c6
1 files changed, 3 insertions, 3 deletions
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;