diff options
Diffstat (limited to '')
-rw-r--r-- | src/song.h | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/song.h b/src/song.h index aebc8f044..377a78814 100644 --- a/src/song.h +++ b/src/song.h @@ -30,11 +30,6 @@ #define SONG_BEGIN "songList begin" #define SONG_END "songList end" -enum song_type { - SONG_TYPE_FILE = 1, - SONG_TYPE_URL = 2 -}; - #define SONG_FILE "file: " #define SONG_TIME "Time: " @@ -42,12 +37,10 @@ typedef struct _Song { struct mpd_tag *tag; struct _Directory *parentDir; time_t mtime; - enum song_type type; char url[1]; } mpd_packed Song; -Song *newSong(const char *url, enum song_type type, - struct _Directory *parentDir); +Song *newSong(const char *url, struct _Directory *parentDir); void freeSong(Song *); @@ -69,4 +62,9 @@ void printSongUrl(int fd, Song * song); */ char *get_song_url(char *path_max_tmp, Song * song); +static inline int song_is_file(const Song *song) +{ + return !!song->parentDir; +} + #endif |