]> err.no Git - systemd/commit
unit: properly update references to units which are merged
authorLennart Poettering <lennart@poettering.net>
Fri, 6 Jan 2012 22:08:54 +0000 (23:08 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 6 Jan 2012 22:08:54 +0000 (23:08 +0100)
commit57020a3abff20f176e9f0cbb982d7977119d6f08
tree3b3d69307cecce0dc4ad25aa074c2a0db64bdfb6
parent73aa0c00df8b101bad4c3a038148a633df88610c
unit: properly update references to units which are merged

When we merge units that some kind of object points to, those pointers
might become invalidated, and needs to be updated. Introduce a UnitRef
struct which links up all the unit references, to ensure corrected
references.

At the same time, drop configured_sockets in the Service object, and
replace it by proper UNIT_TRIGGERS resp. UNIT_TRIGGERED_BY dependencies,
which allow us to simplify a lot of code.
18 files changed:
src/automount.c
src/automount.h
src/dbus-path.c
src/dbus-service.c
src/dbus-timer.c
src/dbus-unit.h
src/load-fragment.c
src/mount.c
src/path.c
src/path.h
src/service.c
src/service.h
src/socket.c
src/socket.h
src/timer.c
src/timer.h
src/unit.c
src/unit.h