]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/libsystemd/sd-bus/test-bus-objects.c
sd-bus: introduce new SD_BUS_VTABLE_PROPERTY_EXPLICIT flag 1024/head
authorLennart Poettering <lennart@poettering.net>
Mon, 24 Aug 2015 23:45:33 +0000 (01:45 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 24 Aug 2015 23:50:59 +0000 (01:50 +0200)
commit337020515d932b1d27e96715576cd5d1ea5b6d88
tree8ae9961c74f883fe562c7267230f1de8da4c87bb
parent53496ca9adc383bd8aa28e8f75f1b21c2cc82b05
sd-bus: introduce new SD_BUS_VTABLE_PROPERTY_EXPLICIT flag

This allows marking properties as "explicit". Properties marked like
this are included in the introspection, but are avoided in GetAll()
property queries, PropertiesChanged() signals and in in GetManaged()
object manager calls and InterfacesAdded() signals.

Expensive properties may be marked that way, and they will be
retrievable when explicitly being requested, but never in "blanket"
all-property queries and signals.

This flag may be combined with the flags for "const" and
"emit-validation" properties, but not with "emit-validation", as that
is only useful for properties whose value shall be sent in "blanket"
all-property signals.

The "explicit" flag is also exposed in the introspection data via a new
annotation.
src/libsystemd/sd-bus/bus-introspect.c
src/libsystemd/sd-bus/bus-objects.c
src/libsystemd/sd-bus/test-bus-introspect.c
src/libsystemd/sd-bus/test-bus-objects.c
src/systemd/sd-bus-vtable.h