Descriptiondbus: verify object path of incoming signals
The existing behavior, while convenient for debugging, is wrong.
D-Bus will not call any further filter functions once one returns
DBUS_HANDLER_RESULT_HANDLED, in order for the next to be called a
filter must return DBUS_HANDLER_RESULT_NOT_YET_HANDLED if it does
not handle the incoming signal.
We also can't defer this to the signal function since we have to
post that to a different thread, and return values get hard.
Since object proxies are constructed per-path, and match common
interfaces and members, this means signals must be matched on an
object otherwise only the first registered object proxy for any
client will be called, and will be called for all signals.
BUG=chromium-os:27113
TEST=ran unit tests, and manually verified existing code that uses ConnectToSignal
Change-Id: Ia4cbc064dff0421a37fe4c4b7c719acf25eb630c
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=124357
Patch Set 1 #
Total comments: 2
Patch Set 2 : adjust unit test to test the new behavior, reather than removing #
Total comments: 3
Patch Set 3 : replace test with one that verifies signal delivery to the right sender #
Total comments: 2
Patch Set 4 : comment fixes #
Messages
Total messages: 10 (0 generated)
|