diff options
author | Warren Dukes <warren.dukes@gmail.com> | 2004-05-13 18:16:03 +0000 |
---|---|---|
committer | Warren Dukes <warren.dukes@gmail.com> | 2004-05-13 18:16:03 +0000 |
commit | 8c484eeccfaafd2d5eaf7cd77842581004957a8a (patch) | |
tree | 831e06fb02c0d01214d65e1a692d834deadb0911 /src/song.h | |
parent | e7ae1b0ce96b41dc336210c6df575a4d1cb9d2be (diff) |
add type element to Song struct, and change utf8file to utf8url
git-svn-id: https://svn.musicpd.org/mpd/trunk@999 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/song.h')
-rw-r--r-- | src/song.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/song.h b/src/song.h index eaa44bedc..10286c22c 100644 --- a/src/song.h +++ b/src/song.h @@ -30,15 +30,21 @@ #include "tag.h" #include "list.h" +typedef enum { + SONG_TYPE_FILE, + SONG_TYPE_URL +} SONG_TYPE; + typedef struct _Song { - char * utf8file; + char * utf8url; + SONG_TYPE type; MpdTag * tag; time_t mtime; } Song; typedef List SongList; -Song * newSong(char * utf8file); +Song * newSong(char * utf8url, SONG_TYPE type); void freeSong(Song *); @@ -46,7 +52,8 @@ SongList * newSongList(); void freeSongList(SongList * list); -Song * addSongToList(SongList * list, char * key, char * utf8file); +Song * addSongToList(SongList * list, char * key, char * utf8file, + SONG_TYPE type); int printSongInfo(FILE * fp, Song * song); |