diff options
author | Warren Dukes <warren.dukes@gmail.com> | 2004-11-11 00:41:28 +0000 |
---|---|---|
committer | Warren Dukes <warren.dukes@gmail.com> | 2004-11-11 00:41:28 +0000 |
commit | 03f02badf02adba317f6358bc0e1ebf669b48204 (patch) | |
tree | 9ef4d938f7e8f9d9cef200bf74e7b0577c6fe09a /src/song.h | |
parent | 01b494a85245c589ae6369ef75608743b2f73149 (diff) | |
download | mpd-03f02badf02adba317f6358bc0e1ebf669b48204.tar.gz mpd-03f02badf02adba317f6358bc0e1ebf669b48204.tar.xz mpd-03f02badf02adba317f6358bc0e1ebf669b48204.zip |
this is broken
git-svn-id: https://svn.musicpd.org/mpd/trunk@2597 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/song.h')
-rw-r--r-- | src/song.h | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/src/song.h b/src/song.h index 3a14afb05..45f9e7923 100644 --- a/src/song.h +++ b/src/song.h @@ -21,24 +21,23 @@ #include "../config.h" -#define SONG_BEGIN "songList begin" -#define SONG_END "songList end" - #include <sys/param.h> #include <time.h> #include "tag.h" #include "list.h" -typedef enum { - SONG_TYPE_FILE = 1, - SONG_TYPE_URL = 2 -} SONG_TYPE; +#define SONG_BEGIN "songList begin" +#define SONG_END "songList end" + +#define SONG_TYPE_FILE 1 +#define SONG_TYPE_URL 2 typedef struct _Song { - char * utf8url; - SONG_TYPE type; + char * url; + mpd_sint8 type; MpdTag * tag; + struct _Directory * parentDir; time_t mtime; } Song; @@ -46,7 +45,7 @@ typedef List SongList; Song * newNullSong(); -Song * newSong(char * utf8url, SONG_TYPE type); +Song * newSong(char * utf8url, int songType, struct _Directory * parentDir); void freeSong(Song *); @@ -57,7 +56,7 @@ SongList * newSongList(); void freeSongList(SongList * list); Song * addSongToList(SongList * list, char * key, char * utf8file, - SONG_TYPE type); + int songType, struct _Directory * parentDir); int printSongInfo(FILE * fp, Song * song); @@ -71,4 +70,6 @@ int updateSongInfo(Song * song); Song * songDup(Song * song); +void printSongUrl(FILE * fp, Song * song); + #endif |