aboutsummaryrefslogtreecommitdiffstats
path: root/src/db/upnp/upnpplib.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-01-10 22:42:02 +0100
committerMax Kellermann <max@duempel.org>2014-01-10 23:00:27 +0100
commit48097745f6d7afcfed09713c2f8827588eb7b9f3 (patch)
tree92543a95d1a7a45de3c4ffa175e65fc5f4a17fca /src/db/upnp/upnpplib.cxx
parent1091ca969fb9611c219e6f186a71500ffbc74233 (diff)
downloadmpd-48097745f6d7afcfed09713c2f8827588eb7b9f3.tar.gz
mpd-48097745f6d7afcfed09713c2f8827588eb7b9f3.tar.xz
mpd-48097745f6d7afcfed09713c2f8827588eb7b9f3.zip
db/upnp: remove "upnplog" option
We have removed all libupnp logging calls, and we don't need to debug libupnp.
Diffstat (limited to 'src/db/upnp/upnpplib.cxx')
-rw-r--r--src/db/upnp/upnpplib.cxx31
1 files changed, 1 insertions, 30 deletions
diff --git a/src/db/upnp/upnpplib.cxx b/src/db/upnp/upnpplib.cxx
index 2aa328e8d..c2db88d8f 100644
--- a/src/db/upnp/upnpplib.cxx
+++ b/src/db/upnp/upnpplib.cxx
@@ -20,16 +20,10 @@
#include "config.h"
#include "upnpplib.hxx"
#include "Domain.hxx"
-#include "Util.hxx"
#include "Log.hxx"
-#include <string>
-#include <map>
-#include <vector>
-#include <set>
-
#include <upnp/ixml.h>
-#include <upnp/upnpdebug.h>
+#include <upnp/upnptools.h>
static LibUPnP *theLib;
@@ -58,9 +52,6 @@ LibUPnP::LibUPnP()
}
setMaxContentLength(2000*1024);
-#ifdef DEBUG
- UpnpCloseLog();
-#endif
code = UpnpRegisterClient(o_callback, (void *)this, &m_clh);
if (code != UPNP_E_SUCCESS) {
@@ -79,26 +70,6 @@ void LibUPnP::setMaxContentLength(int bytes)
UpnpSetMaxContentLength(bytes);
}
-bool LibUPnP::setLogFileName(const std::string& fn)
-{
- const ScopeLock protect(m_mutex);
-
- if (fn.empty()) {
- UpnpCloseLog();
- } else {
- UpnpSetLogLevel(UPNP_INFO);
- UpnpSetLogFileNames(fn.c_str(), fn.c_str());
- int code = UpnpInitLog();
- if (code != UPNP_E_SUCCESS) {
- FormatError(upnp_domain, "UpnpInitLog() failed: %s",
- UpnpGetErrorMessage(code));
- return false;
- }
- }
-
- return true;
-}
-
void
LibUPnP::registerHandler(Upnp_EventType et, Upnp_FunPtr handler, void *cookie)
{