From: Lennart Poettering Date: Wed, 28 Apr 2021 13:59:13 +0000 (+0200) Subject: man: document new dbus method X-Git-Tag: v249-rc1~325^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F19451%2Fhead;p=thirdparty%2Fsystemd.git man: document new dbus method --- diff --git a/man/org.freedesktop.hostname1.xml b/man/org.freedesktop.hostname1.xml index 3a5088ededc..cc61caca719 100644 --- a/man/org.freedesktop.hostname1.xml +++ b/man/org.freedesktop.hostname1.xml @@ -58,6 +58,7 @@ node /org/freedesktop/hostname1 { in b interactive); GetProductUUID(in b interactive, out ay uuid); + Describe(out s UNNAMED); properties: readonly s Hostname = '...'; readonly s StaticHostname = '...'; @@ -118,6 +119,8 @@ node /org/freedesktop/hostname1 { + + @@ -232,6 +235,17 @@ node /org/freedesktop/hostname1 { machine-info3 for that. For more information on these files and syscalls see the respective man pages. + KernelName, KernelRelease, and + KernelVersion expose the kernel name (e.g. Linux), release + (e.g. 5.0.0-11), and version (i.e. the build number, e.g. #11) as + reported by uname2. + OperatingSystemPrettyName, OperatingSystemCPEName, and + HomeURL expose the PRETTY_NAME=, CPE_NAME= and + HOME_URL= fields from + os-release5. The + purpose of those properties is to allow remote clients to access this information over D-Bus. Local + clients can access the information directly. + Methods @@ -261,22 +275,12 @@ node /org/freedesktop/hostname1 { machine-info5 for the semantics of those settings. - GetProductUUID() returns the "product uuid" as exposed by the kernel based + GetProductUUID() returns the "product UUID" as exposed by the kernel based on DMI information in /sys/class/dmi/id/product_uuid. Reading the file directly requires root privileges, and this method allows access to unprivileged clients through the polkit framework. - KernelName, KernelRelease, and - KernelVersion expose the kernel name (e.g. Linux), release - (e.g. 5.0.0-11), and version (i.e. the build number, e.g. #11) as - reported by - uname2. - OperatingSystemPrettyName, OperatingSystemCPEName, and - HomeURL expose the PRETTY_NAME=, CPE_NAME= and - HOME_URL= fields from - os-release5. The - purpose of those properties is to allow remote clients to access this information over D-Bus. Local - clients can access the information directly. + Describe() returns a JSON representation of all properties in one.