Improve ABI

This commit is contained in:
Taras Zaporozhets
2022-10-30 18:17:51 +01:00
parent 3f825ffb30
commit 299e6940cd
2 changed files with 6 additions and 5 deletions

View File

@ -64,10 +64,6 @@ namespace sdbus {
*/
struct PollData
{
/*!
* The read fd to be monitored by the event loop.
*/
int event_fd;
/*!
* The read fd to be monitored by the event loop.
*/
@ -82,6 +78,11 @@ namespace sdbus {
*/
uint64_t timeout_usec;
/*!
* The read fd to be monitored by the event loop.
*/
int event_fd;
/*!
* Get the event poll timeout.
*

View File

@ -146,7 +146,7 @@ Connection::PollData Connection::getEventLoopPollData() const
auto r = iface_->sd_bus_get_poll_data(bus_.get(), &pollData);
SDBUS_THROW_ERROR_IF(r < 0, "Failed to get bus poll data", -r);
return {eventFd_.fd, pollData.fd, pollData.events, pollData.timeout_usec};
return {pollData.fd, pollData.events, pollData.timeout_usec, eventFd_.fd};
}
const ISdBus& Connection::getSdBusInterface() const