Server.GetSessions(): return array of object paths (MB #10452)
Previously, plain strings were used. With DBusObject instead the C++ bridge code recognizes the special meaning of those and correctly sends them over D-Bus as object paths.
This commit is contained in:
parent
b4ebe0c5b0
commit
18c99352e1
1 changed files with 2 additions and 2 deletions
|
@ -1086,7 +1086,7 @@ class DBusServer : public DBusObjectHelper,
|
|||
std::vector<std::string> &transports);
|
||||
|
||||
/** Server.GetSessions() */
|
||||
void getSessions(std::vector<std::string> &sessions);
|
||||
void getSessions(std::vector<DBusObject_t> &sessions);
|
||||
|
||||
/** Server.InfoResponse() */
|
||||
void infoResponse(const Caller_t &caller,
|
||||
|
@ -4645,7 +4645,7 @@ void DBusServer::checkPresence(const std::string &server,
|
|||
return m_presence.checkPresence(server, status, transports);
|
||||
}
|
||||
|
||||
void DBusServer::getSessions(std::vector<std::string> &sessions)
|
||||
void DBusServer::getSessions(std::vector<DBusObject_t> &sessions)
|
||||
{
|
||||
sessions.reserve(m_workQueue.size() + 1);
|
||||
if (m_activeSession) {
|
||||
|
|
Loading…
Reference in a new issue