monitor: use the addressed_recipient to select matches
authorSimon McVittie <simon.mcvittie@collabora.co.uk>
Fri, 6 Nov 2015 14:52:51 +0000 (15:52 +0100)
committerSimon McVittie <smcv@debian.org>
Tue, 17 Nov 2015 20:53:08 +0000 (20:53 +0000)
commitf3be583b40dadfd78ddefbc9fb3fa182bafde949
treec768e5c68ef64a36c23c3678839e5bbac51b63d9
parenta12c9cebb7f818d228c70dafc8292fbbca47534d
monitor: use the addressed_recipient to select matches

This means we respect the destination keyword in arguments to
BecomeMonitor.

In bus_dispatch(), this means that we need to defer capturing until
we have decided whether there is an addressed recipient; so instead
of capturing once, we capture at each leaf of the decision tree.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=92074
Reviewed-by: Philip Withnall <philip.withnall@collabora.co.uk>
Reviewed-by: Lars Uebernickel <lars@uebernic.de>
bus/activation.c
bus/connection.c
bus/connection.h
bus/dispatch.c
bus/driver.c
bus/signals.c
test/monitor.c