From 6e8df5f00a3874decf1e5542da3d65b25f6da1dc Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 10 Dec 2013 16:49:00 +0000 Subject: bus: introduce new SD_BUS_VTABLE_HIDDEN flag for vtable members When this flag is set then its member will not be shown in the introspection data. Also, properties with this flag set will not be included in GetAll() responses. --- src/libsystemd-bus/bus-introspect.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/libsystemd-bus/bus-introspect.c') diff --git a/src/libsystemd-bus/bus-introspect.c b/src/libsystemd-bus/bus-introspect.c index 8bec017d63..504fab1b4b 100644 --- a/src/libsystemd-bus/bus-introspect.c +++ b/src/libsystemd-bus/bus-introspect.c @@ -121,6 +121,9 @@ int introspect_write_interface(struct introspect *i, const sd_bus_vtable *v) { for (; v->type != _SD_BUS_VTABLE_END; v++) { + if (v->type != _SD_BUS_VTABLE_START && (v->flags & SD_BUS_VTABLE_HIDDEN)) + continue; + switch (v->type) { case _SD_BUS_VTABLE_START: -- cgit v1.2.3-54-g00ecf