chiark / gitweb /
sd-bus: support matching on destination names
authorDavid Herrmann <dh.herrmann@gmail.com>
Mon, 6 Jul 2015 15:43:36 +0000 (17:43 +0200)
committerSven Eden <yamakuzure@gmx.net>
Tue, 14 Mar 2017 09:05:56 +0000 (10:05 +0100)
commit2157125fa98cc38eed9ae2c92033df6c5291dc5f
tree801ed9918833d69778cfcb82de2034d4e8c0ab7d
parent74dee2a59ee0aeea915e1f17883f9007621d58e8
sd-bus: support matching on destination names

Right now, we never install destination matches on kdbus as the kernel did
not support MATCH rules on those. With the introduction of
KDBUS_ITEM_DST_ID we can now match on destination IDs, so add explicit
support for those.

This requires a recent kdbus module to work. However, there seems to be no
user-space that uses "Destination=''" matches, yet, so old kdbus modules
still work fine (we couldn't find any real user).

This is needed to match on unicast signals in bus-proxy. A followup will
add support for this.
src/libelogind/sd-bus/bus-control.c
src/libelogind/sd-bus/kdbus.h