From e391f4b17b2fdd092b729f0dfec0b84265894e41 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 15 Aug 2012 20:57:45 +0200 Subject: ProxyDatabase: pass "detached" objects to visitors Fixes wrong object URIs with duplicate base names. --- src/song.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/song.h') diff --git a/src/song.h b/src/song.h index a09b69df2..39f916a6a 100644 --- a/src/song.h +++ b/src/song.h @@ -93,6 +93,12 @@ song_file_load(const char *path, struct directory *parent); struct song * song_replace_uri(struct song *song, const char *uri); +/** + * Creates a "detached" song object. + */ +struct song * +song_detached_new(const char *uri); + /** * Creates a duplicate of the song object. If the object is in the * database, it creates a "detached" copy of this song, see -- cgit v1.2.3