aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/upnp/Discovery.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-01-26 15:22:33 +0100
committerMax Kellermann <max@duempel.org>2014-01-26 15:22:33 +0100
commite57e89b9d59faed31abcd11453fb33af95c55f40 (patch)
tree59c337eb3c1fe6217c96210d92f35b383c230ce7 /src/lib/upnp/Discovery.cxx
parentbcc1f933702770c276e7353d71cb0c5fff75bc4a (diff)
downloadmpd-e57e89b9d59faed31abcd11453fb33af95c55f40.tar.gz
mpd-e57e89b9d59faed31abcd11453fb33af95c55f40.tar.xz
mpd-e57e89b9d59faed31abcd11453fb33af95c55f40.zip
upnp/discovery: use a plain UpnpClient_Handle instead of class LibUPnP
Diffstat (limited to 'src/lib/upnp/Discovery.cxx')
-rw-r--r--src/lib/upnp/Discovery.cxx9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/lib/upnp/Discovery.cxx b/src/lib/upnp/Discovery.cxx
index ce512bdde..9ea78c624 100644
--- a/src/lib/upnp/Discovery.cxx
+++ b/src/lib/upnp/Discovery.cxx
@@ -21,7 +21,6 @@
#include "Discovery.hxx"
#include "Domain.hxx"
#include "ContentDirectoryService.hxx"
-#include "upnpplib.hxx"
#include "system/Clock.hxx"
#include "Log.hxx"
@@ -232,9 +231,9 @@ UPnPDeviceDirectory::expireDevices(Error &error)
return true;
}
-UPnPDeviceDirectory::UPnPDeviceDirectory(LibUPnP *_lib,
+UPnPDeviceDirectory::UPnPDeviceDirectory(UpnpClient_Handle _handle,
UPnPDiscoveryListener *_listener)
- :lib(_lib),
+ :handle(_handle),
listener(_listener),
discoveredQueue("DiscoveredQueue"),
m_searchTimeout(2), m_lastSearch(0)
@@ -266,7 +265,7 @@ UPnPDeviceDirectory::search(Error &error)
m_lastSearch = now;
// We search both for device and service just in case.
- int code = UpnpSearchAsync(lib->getclh(), m_searchTimeout,
+ int code = UpnpSearchAsync(handle, m_searchTimeout,
ContentDirectorySType, GetUpnpCookie());
if (code != UPNP_E_SUCCESS) {
error.Format(upnp_domain, code,
@@ -275,7 +274,7 @@ UPnPDeviceDirectory::search(Error &error)
return false;
}
- code = UpnpSearchAsync(lib->getclh(), m_searchTimeout,
+ code = UpnpSearchAsync(handle, m_searchTimeout,
MediaServerDType, GetUpnpCookie());
if (code != UPNP_E_SUCCESS) {
error.Format(upnp_domain, code,