| 190 | } |
| 191 | |
| 192 | Connection::PollData Connection::getEventLoopPollData() const |
| 193 | { |
| 194 | ISdBus::PollData pollData{}; |
| 195 | auto r = sdbus_->sd_bus_get_poll_data(bus_.get(), &pollData); |
| 196 | SDBUS_THROW_ERROR_IF(r < 0, "Failed to get bus poll data", -r); |
| 197 | |
| 198 | assert(eventFd_.fd >= 0); |
| 199 | |
| 200 | auto timeout = pollData.timeout_usec == UINT64_MAX ? std::chrono::microseconds::max() : std::chrono::microseconds(pollData.timeout_usec); |
| 201 | |
| 202 | return {pollData.fd, pollData.events, timeout, eventFd_.fd}; |
| 203 | } |
| 204 | |
| 205 | void Connection::addObjectManager(const ObjectPath& objectPath) |
| 206 | { |
no test coverage detected