aboutsummaryrefslogtreecommitdiffstats
path: root/src/LightSong.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-01-20 09:18:33 +0100
committerMax Kellermann <max@duempel.org>2014-01-21 21:08:11 +0100
commit7471f65d952336ec18fba4c057b864615a5ce89b (patch)
treed9856c1c291716a727e93e3882b5b45c4bdc6573 /src/LightSong.hxx
parent5d4b450c52b3af92a03a8380a40dc703f0df4233 (diff)
downloadmpd-7471f65d952336ec18fba4c057b864615a5ce89b.tar.gz
mpd-7471f65d952336ec18fba4c057b864615a5ce89b.tar.xz
mpd-7471f65d952336ec18fba4c057b864615a5ce89b.zip
LightSong: add attribute "real_uri"
The UPnP database plugin can now show relative song URIs for remote songs.
Diffstat (limited to 'src/LightSong.hxx')
-rw-r--r--src/LightSong.hxx10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/LightSong.hxx b/src/LightSong.hxx
index b93d5876c..c0cd47749 100644
--- a/src/LightSong.hxx
+++ b/src/LightSong.hxx
@@ -47,6 +47,16 @@ struct LightSong {
const char *uri;
/**
+ * The "real" URI, the one to be used for opening the
+ * resource. If this attribute is empty, then #uri (and
+ * #directory) shall be used.
+ *
+ * This attribute is used for songs from the database which
+ * have a relative URI.
+ */
+ std::string real_uri;
+
+ /**
* Must not be nullptr.
*/
const Tag *tag;