From d562ba5fbbe117585eaade40a8e9c6ef1bf7ca1f Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 8 Oct 2008 10:49:11 +0200 Subject: song: converted typedef Song to struct song Again, a data type which can be forward-declared. --- src/playlist.h | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'src/playlist.h') diff --git a/src/playlist.h b/src/playlist.h index acc44aca6..a5b340ddc 100644 --- a/src/playlist.h +++ b/src/playlist.h @@ -21,9 +21,13 @@ #include "locate.h" +#include + #define PLAYLIST_FILE_SUFFIX "m3u" #define PLAYLIST_COMMENT '#' +struct client; + enum playlist_result { PLAYLIST_RESULT_SUCCESS, PLAYLIST_RESULT_ERRNO, @@ -37,7 +41,7 @@ enum playlist_result { }; typedef struct _Playlist { - Song **songs; + struct song **songs; /* holds version a song was modified on */ uint32_t *songMod; int *order; @@ -71,7 +75,8 @@ enum playlist_result addToPlaylist(const char *file, int *added_id); int addToStoredPlaylist(const char *file, const char *utf8file); -enum playlist_result addSongToPlaylist(Song * song, int *added_id); +enum playlist_result +addSongToPlaylist(struct song *song, int *added_id); void showPlaylist(struct client *client); @@ -101,7 +106,8 @@ enum playlist_result savePlaylist(const char *utf8file); enum playlist_result deletePlaylist(const char *utf8file); -void deleteASongFromPlaylist(const Song * song); +void +deleteASongFromPlaylist(const struct song *song); enum playlist_result moveSongInPlaylist(int from, int to); -- cgit v1.2.3