diff options
Diffstat (limited to '')
-rw-r--r-- | src/song.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/song.h b/src/song.h index 7d174c51e..6016b8d93 100644 --- a/src/song.h +++ b/src/song.h @@ -68,9 +68,15 @@ char * song_get_url(const struct song *song, char *path_max_tmp); static inline bool -song_is_file(const struct song *song) +song_in_database(const struct song *song) { return song->parent != NULL; } +static inline bool +song_is_file(const struct song *song) +{ + return song_in_database(song); +} + #endif |