aboutsummaryrefslogtreecommitdiffstats
path: root/src/db/UpnpDatabasePlugin.cxx
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/UpnpDatabasePlugin.cxx
parenta89c21b06ae3850fb05b5d05da156297b8195f53 (diff)
downloadmpd-77c461fed7dde948f2a226611004f7739c104462.tar.gz
mpd-77c461fed7dde948f2a226611004f7739c104462.tar.xz
mpd-77c461fed7dde948f2a226611004f7739c104462.zip
db/upnp: make several methods "const"
Diffstat (limited to 'src/db/UpnpDatabasePlugin.cxx')
-rw-r--r--src/db/UpnpDatabasePlugin.cxx24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/db/UpnpDatabasePlugin.cxx b/src/db/UpnpDatabasePlugin.cxx
index 849c3730f..70b39a4d3 100644
--- a/src/db/UpnpDatabasePlugin.cxx
+++ b/src/db/UpnpDatabasePlugin.cxx
@@ -103,7 +103,7 @@ protected:
bool Configure(const config_param &param, Error &error);
private:
- bool VisitServer(ContentDirectoryService &server,
+ bool VisitServer(const ContentDirectoryService &server,
const std::list<std::string> &vpath,
const DatabaseSelection &selection,
VisitDirectory visit_directory,
@@ -115,19 +115,19 @@ private:
* Run an UPnP search according to MPD parameters, and
* visit_song the results.
*/
- bool SearchSongs(ContentDirectoryService &server,
+ bool SearchSongs(const ContentDirectoryService &server,
const char *objid,
const DatabaseSelection &selection,
VisitSong visit_song,
Error &error) const;
- bool SearchSongs(ContentDirectoryService &server,
+ bool SearchSongs(const ContentDirectoryService &server,
const char *objid,
const DatabaseSelection &selection,
UPnPDirContent& dirbuf,
Error &error) const;
- bool Namei(ContentDirectoryService &server,
+ bool Namei(const ContentDirectoryService &server,
const std::list<std::string> &vpath,
UPnPDirObject &dirent,
Error &error) const;
@@ -135,7 +135,7 @@ private:
/**
* Take server and objid, return metadata.
*/
- bool ReadNode(ContentDirectoryService &server,
+ bool ReadNode(const ContentDirectoryService &server,
const char *objid, UPnPDirObject& dirent,
Error &error) const;
@@ -144,7 +144,7 @@ private:
* except easier cause our inodes have a parent id. Not used
* any more actually (see comments in SearchSongs).
*/
- bool BuildPath(ContentDirectoryService &server,
+ bool BuildPath(const ContentDirectoryService &server,
const UPnPDirObject& dirent, std::string &idpath,
Error &error) const;
};
@@ -266,7 +266,7 @@ dquote(std::string &out, const char *in)
// Run an UPnP search, according to MPD parameters. Return results as
// UPnP items
bool
-UpnpDatabase::SearchSongs(ContentDirectoryService &server,
+UpnpDatabase::SearchSongs(const ContentDirectoryService &server,
const char *objid,
const DatabaseSelection &selection,
UPnPDirContent &dirbuf,
@@ -381,7 +381,7 @@ songPath(const std::string &servername,
}
bool
-UpnpDatabase::SearchSongs(ContentDirectoryService &server,
+UpnpDatabase::SearchSongs(const ContentDirectoryService &server,
const char *objid,
const DatabaseSelection &selection,
VisitSong visit_song,
@@ -426,7 +426,7 @@ UpnpDatabase::SearchSongs(ContentDirectoryService &server,
}
bool
-UpnpDatabase::ReadNode(ContentDirectoryService &server,
+UpnpDatabase::ReadNode(const ContentDirectoryService &server,
const char *objid, UPnPDirObject &dirent,
Error &error) const
{
@@ -445,7 +445,7 @@ UpnpDatabase::ReadNode(ContentDirectoryService &server,
}
bool
-UpnpDatabase::BuildPath(ContentDirectoryService &server,
+UpnpDatabase::BuildPath(const ContentDirectoryService &server,
const UPnPDirObject& idirent,
std::string &path,
Error &error) const
@@ -472,7 +472,7 @@ UpnpDatabase::BuildPath(ContentDirectoryService &server,
// Take server and internal title pathname and return objid and metadata.
bool
-UpnpDatabase::Namei(ContentDirectoryService &server,
+UpnpDatabase::Namei(const ContentDirectoryService &server,
const std::list<std::string> &vpath,
UPnPDirObject &odirent,
Error &error) const
@@ -521,7 +521,7 @@ UpnpDatabase::Namei(ContentDirectoryService &server,
// vpath is a parsed and writeable version of selection.uri. There is
// really just one path parameter.
bool
-UpnpDatabase::VisitServer(ContentDirectoryService &server,
+UpnpDatabase::VisitServer(const ContentDirectoryService &server,
const std::list<std::string> &vpath,
const DatabaseSelection &selection,
VisitDirectory visit_directory,