MCPcopy Create free account
hub / github.com/Kistler-Group/sdbus-cpp / createSdEventSlot

Method createSdEventSlot

src/Connection.cpp:323–333  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

321#ifndef SDBUS_basu
322
323Slot 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
335Slot Connection::createSdTimeEventSourceSlot(sd_event *event, int priority)
336{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected