aboutsummaryrefslogtreecommitdiffstats
path: root/src/song.h
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.h
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 'src/song.h')
-rw-r--r--src/song.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/song.h b/src/song.h
index 46cf8f5cb..fcba961f0 100644
--- a/src/song.h
+++ b/src/song.h
@@ -35,12 +35,12 @@
typedef struct _Song {
struct mpd_tag *tag;
- struct _Directory *parentDir;
+ struct directory *parentDir;
time_t mtime;
char url[sizeof(size_t)];
} Song;
-Song *newSong(const char *url, struct _Directory *parentDir);
+Song *newSong(const char *url, struct directory *parentDir);
void freeJustSong(Song *);
@@ -49,7 +49,7 @@ ssize_t song_print_info(Song * song, int fd);
/* like song_print_info, but casts data into an fd first */
int song_print_info_x(Song * song, void *data);
-void readSongInfoIntoList(FILE * fp, struct _Directory *parent);
+void readSongInfoIntoList(FILE * fp, struct directory *parent);
int updateSongInfo(Song * song);