[systemd-devel] sd_bus_add_filter usage

Lennart Poettering mzxreary at 0pointer.de
Wed Jun 7 12:08:40 UTC 2017


On Wed, 07.06.17 14:01, Pawel Szewczyk (p.szewczyk at samsung.com) wrote:

> Hello,
> 
> What is the purpose of sd_bus_add_filter() function? There is no
> documentation for it and all I can tell from looking over the code is that
> the callback registered by it is called on every dbus message. What else
> does it do?

Nothing. It may be used to install a callback that is called early for
each incoming message and may be used to filter them (i.e. drop them
or permit them) or otherwise process them. They do not install any match,
and hence only get what other matches have already selected.

Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list