From 322b0616322760dc162447563d8f4da7e024ca90 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 7 Jan 2014 21:39:47 +0100 Subject: DetachedSong: fork of struct Song From now on, struct Song will be used by the database only, and DetachedSong will be used by everybody else. DetachedSong is easier to use, but Song has lower overhead. --- src/PlaylistSong.hxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/PlaylistSong.hxx') diff --git a/src/PlaylistSong.hxx b/src/PlaylistSong.hxx index d0db99868..9cfb09b24 100644 --- a/src/PlaylistSong.hxx +++ b/src/PlaylistSong.hxx @@ -20,7 +20,7 @@ #ifndef MPD_PLAYLIST_SONG_HXX #define MPD_PLAYLIST_SONG_HXX -struct Song; +class DetachedSong; /** * Verifies the song, returns nullptr if it is unsafe. Translate the @@ -30,8 +30,8 @@ struct Song; * @param secure if true, then local files are only allowed if they * are relative to base_uri */ -Song * -playlist_check_translate_song(Song *song, const char *base_uri, +DetachedSong * +playlist_check_translate_song(DetachedSong *song, const char *base_uri, bool secure); #endif -- cgit v1.2.3