Systemd/src/libsystemd
David Herrmann 2d5c8a2756 sd-bus: fix path of object-manager signals
Each signal of the ObjectManager interface carries the path of the object
in question as an argument. Therefore, a caller will deduce the object
this signal is generated for, by parsing the _argument_. A caller will
*not* use the object-path of the message itself (i.e., message->path).
This is done on purpose, so the caller can rely on message->path to be
the path of the actual object-manager that generated this signal, instead
of the path of the object that triggered this signal.

This commit fixes all InterfacesAdded/Removed signals to use the path of
the closest object-manager as message->path. 'closest' in this case means
closest parent with at least one object-manager registered.

This fix raises the question what happens if we stack object-managers in
a hierarchy. Two implementations are possible: First, we report each
object only on the nearest object-manager. Second, we report it on each
parent object-manager. This patch chooses the former. This is compatible
with other existing ObjectManager implementations, which are required to
call GetManagedObjects() recursively on each object they find, which
implements the ObjectManager interface.
2015-07-27 19:15:08 +02:00
..
sd-bus sd-bus: fix path of object-manager signals 2015-07-27 19:15:08 +02:00
sd-daemon sd-daemon: simplify sd_pid_notify_with_fds 2015-03-13 23:42:17 -04:00
sd-device sd-device: never return NULL+0 2015-07-15 12:31:21 +02:00
sd-event sd-event: make errors on EPOLL_CTL_DEL pseudo-fatal 2015-06-17 09:13:48 +02:00
sd-hwdb hashmap: fix iterators to not skip entries 2015-06-14 16:56:02 +02:00
sd-id128 build-sys: add all source files and no built files to the tar ball 2015-06-23 12:43:15 +02:00
sd-login build-sys: split internal basic/ library from shared/ 2015-06-11 10:52:46 +02:00
sd-netlink netlink-types: use consistent whitespace at EOL 2015-07-24 23:43:51 -04:00
sd-network sd-network: fix CID 1306198 2015-06-11 14:08:56 +05:30
sd-path tree-wide: there is no ENOTSUP on linux 2015-03-13 14:10:39 +01:00
sd-resolve Add (void) where we don't care about return value 2015-03-15 17:26:58 -04:00
sd-utf8 libsystemd: split up into subdirs 2014-01-21 14:41:35 +01:00
.gitignore libsystemd: remove list of symbols to export only in the future 2015-06-17 16:21:13 +02:00
libsystemd.pc.in build-sys: update .pc.in files 2014-01-25 18:55:58 -05:00
libsystemd.sym sd-bus: introduce new sd_bus_flush_close_unref() call 2015-07-03 19:49:03 +02:00
Makefile libsystemd-bus: rename to libsystemd 2014-01-13 18:54:19 +01:00