Skip to content

Commit

Permalink
comment sd_bus_match_signal() requires libsystemd v237
Browse files Browse the repository at this point in the history
  • Loading branch information
riuriuriu committed Apr 13, 2021
1 parent fe8cdce commit 3f54b5e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Connection.cpp
Expand Up @@ -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);

Expand Down

0 comments on commit 3f54b5e

Please sign in to comment.