aboutsummaryrefslogtreecommitdiffstats
path: root/src/db/upnp
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-01-22 23:50:33 +0100
committerMax Kellermann <max@duempel.org>2014-01-22 23:50:33 +0100
commit77c461fed7dde948f2a226611004f7739c104462 (patch)
treeb62cb324be88b45c550937a6d8af9ea3fdb9faaa /src/db/upnp
parenta89c21b06ae3850fb05b5d05da156297b8195f53 (diff)
downloadmpd-77c461fed7dde948f2a226611004f7739c104462.tar.gz
mpd-77c461fed7dde948f2a226611004f7739c104462.tar.xz
mpd-77c461fed7dde948f2a226611004f7739c104462.zip
db/upnp: make several methods "const"
Diffstat (limited to 'src/db/upnp')
-rw-r--r--src/db/upnp/ContentDirectoryService.cxx10
-rw-r--r--src/db/upnp/ContentDirectoryService.hxx10
2 files changed, 10 insertions, 10 deletions
diff --git a/src/db/upnp/ContentDirectoryService.cxx b/src/db/upnp/ContentDirectoryService.cxx
index 2f9565d95..1c4e43e12 100644
--- a/src/db/upnp/ContentDirectoryService.cxx
+++ b/src/db/upnp/ContentDirectoryService.cxx
@@ -63,7 +63,7 @@ ContentDirectoryService::readDirSlice(UpnpClient_Handle hdl,
const char *objectId, unsigned offset,
unsigned count, UPnPDirContent &dirbuf,
unsigned &didreadp, unsigned &totalp,
- Error &error)
+ Error &error) const
{
// Create request
char ofbuf[100], cntbuf[100];
@@ -112,7 +112,7 @@ bool
ContentDirectoryService::readDir(UpnpClient_Handle handle,
const char *objectId,
UPnPDirContent &dirbuf,
- Error &error)
+ Error &error) const
{
unsigned offset = 0, total = -1, count;
@@ -132,7 +132,7 @@ ContentDirectoryService::search(UpnpClient_Handle hdl,
const char *objectId,
const char *ss,
UPnPDirContent &dirbuf,
- Error &error)
+ Error &error) const
{
unsigned offset = 0, total = -1, count;
@@ -189,7 +189,7 @@ ContentDirectoryService::search(UpnpClient_Handle hdl,
bool
ContentDirectoryService::getSearchCapabilities(UpnpClient_Handle hdl,
std::list<std::string> &result,
- Error &error)
+ Error &error) const
{
assert(result.empty());
@@ -234,7 +234,7 @@ bool
ContentDirectoryService::getMetadata(UpnpClient_Handle hdl,
const char *objectId,
UPnPDirContent &dirbuf,
- Error &error)
+ Error &error) const
{
// Create request
IXML_Document *request =
diff --git a/src/db/upnp/ContentDirectoryService.hxx b/src/db/upnp/ContentDirectoryService.hxx
index 035849681..18bdcde22 100644
--- a/src/db/upnp/ContentDirectoryService.hxx
+++ b/src/db/upnp/ContentDirectoryService.hxx
@@ -75,13 +75,13 @@ public:
*/
bool readDir(UpnpClient_Handle handle,
const char *objectId, UPnPDirContent &dirbuf,
- Error &error);
+ Error &error) const;
bool readDirSlice(UpnpClient_Handle handle,
const char *objectId, unsigned offset,
unsigned count, UPnPDirContent& dirbuf,
unsigned &didread, unsigned &total,
- Error &error);
+ Error &error) const;
/** Search the content directory service.
*
@@ -96,7 +96,7 @@ public:
bool search(UpnpClient_Handle handle,
const char *objectId, const char *searchstring,
UPnPDirContent &dirbuf,
- Error &error);
+ Error &error) const;
/** Read metadata for a given node.
*
@@ -106,7 +106,7 @@ public:
*/
bool getMetadata(UpnpClient_Handle handle,
const char *objectId, UPnPDirContent &dirbuf,
- Error &error);
+ Error &error) const;
/** Retrieve search capabilities
*
@@ -115,7 +115,7 @@ public:
*/
bool getSearchCapabilities(UpnpClient_Handle handle,
std::list<std::string> &result,
- Error &error);
+ Error &error) const;
/** Retrieve the "friendly name" for this server, useful for display. */
const char *getFriendlyName() const {