| 321 | #ifndef SDBUS_basu |
| 322 | |
| 323 | Slot Connection::createSdEventSlot(sd_event *event) |
| 324 | { |
| 325 | // Get default event if no event is provided by the caller |
| 326 | if (event != nullptr) |
| 327 | event = sd_event_ref(event); |
| 328 | else |
| 329 | (void)sd_event_default(&event); |
| 330 | SDBUS_THROW_ERROR_IF(!event, "Invalid sd_event handle", EINVAL); |
| 331 | |
| 332 | return Slot{event, [](void* event){ sd_event_unref(static_cast<sd_event*>(event)); }}; |
| 333 | } |
| 334 | |
| 335 | Slot Connection::createSdTimeEventSourceSlot(sd_event *event, int priority) |
| 336 | { |
nothing calls this directly
no outgoing calls
no test coverage detected