[systemd-devel] D-Bus method parameter names in introspection XML

Lennart Poettering lennart at poettering.net
Tue Feb 26 18:34:43 UTC 2019


On Mo, 18.02.19 20:16, Stanislav Angelovič (angelovic.s at gmail.com) wrote:

> Hi guys,
>
> sd-bus implements and automatically provides
> org.freedesktop.DBus.Introspectable interface for each object vtable. Xml
> output of Introspect method of that interface provides all necessary
> information but one -- names of method parameters.
>
> It's quite convenient that when one introspects a service and its
> interfaces, he wants very much to see names of method parameters. Naming of
> parameters adds a whole different level of self-expressiveness and clarity
> to interface description. D-Bus specification (
> https://dbus.freedesktop.org/doc/dbus-specification.html#introspection-format)
> mentions names of method parameters as well.
>
> Are there any ways to solve this on sd-bus user side? Either way, would it
> be possible to extend sd-bus vtable registration and introspection
> facilities to incorporate names of method parameters?

Yes, support for this has been merged today:

https://github.com/systemd/systemd/pull/11357

Lennart

--
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list