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

Method sdbus_match_callback

src/Connection.cpp:902–913  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

900}
901
902int Connection::sdbus_match_callback(sd_bus_message *sdbusMessage, void *userData, sd_bus_error *retError)
903{
904 auto* matchInfo = static_cast<MatchInfo*>(userData);
905 assert(matchInfo != nullptr);
906 assert(matchInfo->callback);
907
908 auto message = Message::Factory::create<PlainMessage>(sdbusMessage, &matchInfo->connection);
909
910 auto ok = invokeHandlerAndCatchErrors([&](){ matchInfo->callback(std::move(message)); }, retError);
911
912 return ok ? 0 : -1;
913}
914
915int Connection::sdbus_match_install_callback(sd_bus_message *sdbusMessage, void *userData, sd_bus_error *retError)
916{

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected