]> git.ipfire.org Git - thirdparty/systemd.git/commit
sd-bus: add a "recursive" mode to sd_bus_track
authorLennart Poettering <lennart@poettering.net>
Mon, 15 Aug 2016 12:58:09 +0000 (14:58 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 22 Aug 2016 12:17:24 +0000 (14:17 +0200)
commitae1a2efa8b72c30b46528fa6469ce6686527dec7
tree0c84b8a2fc1c220e96b86c934c2baec8e92b45f5
parent512e3bbce6925f9951fcd1c397d4e1b6ab37d37a
sd-bus: add a "recursive" mode to sd_bus_track

This adds an optional "recursive" counting mode to sd_bus_track. If enabled
adding the same name multiple times to an sd_bus_track object is counted
individually, so that it also has to be removed the same number of times before
it is gone again from the tracking object.

This functionality is useful for implementing local ref counted objects that
peers make take references on.
src/libsystemd/libsystemd.sym
src/libsystemd/sd-bus/bus-track.c
src/systemd/sd-bus.h