aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/upnp
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-01-26 11:19:17 +0100
committerMax Kellermann <max@duempel.org>2014-01-26 15:51:33 +0100
commit0b3fbdba87e9ecbfaefab9f71203a1c35f1a8b00 (patch)
tree4e103fbcbea5dd504054f0d60dbc84e83ceed52b /src/lib/upnp
parent3dad837ca692df4eecee9c16fd9155b4ca23e289 (diff)
downloadmpd-0b3fbdba87e9ecbfaefab9f71203a1c35f1a8b00.tar.gz
mpd-0b3fbdba87e9ecbfaefab9f71203a1c35f1a8b00.tar.xz
mpd-0b3fbdba87e9ecbfaefab9f71203a1c35f1a8b00.zip
neighbor/upnp: UPnP media server discovery
Diffstat (limited to 'src/lib/upnp')
-rw-r--r--src/lib/upnp/ContentDirectoryService.hxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/upnp/ContentDirectoryService.hxx b/src/lib/upnp/ContentDirectoryService.hxx
index 3c4497be1..0b03df2e7 100644
--- a/src/lib/upnp/ContentDirectoryService.hxx
+++ b/src/lib/upnp/ContentDirectoryService.hxx
@@ -121,6 +121,11 @@ public:
std::list<std::string> &result,
Error &error) const;
+ gcc_pure
+ std::string GetURI() const {
+ return "upnp://" + m_deviceId + "/" + m_serviceType;
+ }
+
/** Retrieve the "friendly name" for this server, useful for display. */
const char *getFriendlyName() const {
return m_friendlyName.c_str();