aboutsummaryrefslogtreecommitdiffstats
path: root/src/song.h
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2004-05-13 18:16:03 +0000
committerWarren Dukes <warren.dukes@gmail.com>2004-05-13 18:16:03 +0000
commit8c484eeccfaafd2d5eaf7cd77842581004957a8a (patch)
tree831e06fb02c0d01214d65e1a692d834deadb0911 /src/song.h
parente7ae1b0ce96b41dc336210c6df575a4d1cb9d2be (diff)
downloadmpd-8c484eeccfaafd2d5eaf7cd77842581004957a8a.tar.gz
mpd-8c484eeccfaafd2d5eaf7cd77842581004957a8a.tar.xz
mpd-8c484eeccfaafd2d5eaf7cd77842581004957a8a.zip
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 '')
-rw-r--r--src/song.h13
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);