comment sd_bus_match_signal() requires libsystemd v237

This commit is contained in:
riuriuriu
2021-04-13 14:36:53 +02:00
committed by Urs Ritzmann
parent fe8cdce107
commit 3f54b5e762

View File

@ -298,8 +298,9 @@ SlotPtr Connection::registerSignalHandler( const std::string& sender
{
sd_bus_slot *slot{};
// alternatively to our own composeSignalMatchFilter() implementation, we could also use sd_bus_match_signal() from
// https://www.freedesktop.org/software/systemd/man/sd_bus_add_match.html#
// Alternatively to our own composeSignalMatchFilter() implementation, we could use sd_bus_match_signal() from
// https://www.freedesktop.org/software/systemd/man/sd_bus_add_match.html .
// But this would require libsystemd v237 or higher.
auto filter = composeSignalMatchFilter(sender, objectPath, interfaceName, signalName);
auto r = iface_->sd_bus_add_match(bus_.get(), &slot, filter.c_str(), callback, userData);