From df563db29406ee47a9d45ae5a01ef03cc52be478 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 12 Feb 2012 19:47:22 +0100 Subject: song: add function song_replace_uri() --- src/song.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/song.h') diff --git a/src/song.h b/src/song.h index 95cc2eb8..8b97d45d 100644 --- a/src/song.h +++ b/src/song.h @@ -74,6 +74,15 @@ song_file_new(const char *path, struct directory *parent); struct song * song_file_load(const char *path, struct directory *parent); +/** + * Replaces the URI of a song object. The given song object is + * destroyed, and a newly allocated one is returned. It does not + * update the reference within the parent directory; the caller is + * responsible for doing that. + */ +struct song * +song_replace_uri(struct song *song, const char *uri); + void song_free(struct song *song); -- cgit v1.2.3