Make Connection const-correct and fix integration tests build error

This commit is contained in:
sangelovic
2019-11-10 17:40:33 +01:00
parent 5fe0f503ca
commit 839bc13625
4 changed files with 7 additions and 6 deletions

View File

@@ -76,7 +76,7 @@ void Connection::releaseName(const std::string& name)
SDBUS_THROW_ERROR_IF(r < 0, "Failed to release bus name", -r);
}
std::string Connection::getUniqueName()
std::string Connection::getUniqueName() const
{
const char* unique = nullptr;
auto r = iface_->sd_bus_get_unique_name(bus_.get(), &unique);
@@ -110,7 +110,7 @@ void Connection::leaveProcessingLoop()
joinWithProcessingLoop();
}
sdbus::IConnection::PollData Connection::getProcessLoopPollData()
sdbus::IConnection::PollData Connection::getProcessLoopPollData() const
{
ISdBus::PollData pollData;
auto r = iface_->sd_bus_get_poll_data(bus_.get(), &pollData);