From 48f99d7c069e07671e570161aecbe109af1285e0 Mon Sep 17 00:00:00 2001 From: Zbigniew Jędrzejewski-Szmek Date: Fri, 24 Apr 2020 12:08:10 +0200 Subject: man: use --bus-introspect to autogenerate dbus api docs This has the advantage that the executables are always in place and we don't need any units to exist on the bus, so we can eventually hook this up into a normal build system. (Probably as a build time check.) --- man/org.freedesktop.hostname1.xml | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) (limited to 'man/org.freedesktop.hostname1.xml') diff --git a/man/org.freedesktop.hostname1.xml b/man/org.freedesktop.hostname1.xml index 406a6a369e..d17d9a5521 100644 --- a/man/org.freedesktop.hostname1.xml +++ b/man/org.freedesktop.hostname1.xml @@ -38,11 +38,7 @@ The service exposes the following interfaces on the bus: - -$ gdbus introspect --system \ - --dest org.freedesktop.hostname1 \ - --object-path /org/freedesktop/hostname1 - + node /org/freedesktop/hostname1 { interface org.freedesktop.hostname1 { methods: @@ -349,6 +345,19 @@ node /org/freedesktop/hostname1 { the usual interface versioning guidelines. + + Examples + + + Introspect <interfacename>org.freedesktop.hostname1</interfacename> on the bus + + $ gdbus introspect --system \ + --dest org.freedesktop.hostname1 \ + --object-path /org/freedesktop/hostname1 + + + + See also -- cgit v1.2.3