From 5c20a8bca1dd16d64b2dd959a2552f6452448932 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Sat, 18 Oct 2014 16:20:36 +0200 Subject: [PATCH] man: document sd_bus_creds_get_connection_name() --- Makefile-man.am | 5 +++++ man/sd_bus_creds_get_pid.xml | 14 ++++++++++++++ 2 files changed, 19 insertions(+) diff --git a/Makefile-man.am b/Makefile-man.am index 6a74abdb041..bdbc54f4a23 100644 --- a/Makefile-man.am +++ b/Makefile-man.am @@ -750,6 +750,7 @@ MANPAGES_ALIAS += \ man/sd_bus_creds_get_cgroup.3 \ man/sd_bus_creds_get_cmdline.3 \ man/sd_bus_creds_get_comm.3 \ + man/sd_bus_creds_get_connection_name.3 \ man/sd_bus_creds_get_exe.3 \ man/sd_bus_creds_get_gid.3 \ man/sd_bus_creds_get_mask.3 \ @@ -818,6 +819,7 @@ man/sd_bus_creds_get_audit_session_id.3: man/sd_bus_creds_get_pid.3 man/sd_bus_creds_get_cgroup.3: man/sd_bus_creds_get_pid.3 man/sd_bus_creds_get_cmdline.3: man/sd_bus_creds_get_pid.3 man/sd_bus_creds_get_comm.3: man/sd_bus_creds_get_pid.3 +man/sd_bus_creds_get_connection_name.3: man/sd_bus_creds_get_pid.3 man/sd_bus_creds_get_exe.3: man/sd_bus_creds_get_pid.3 man/sd_bus_creds_get_gid.3: man/sd_bus_creds_get_pid.3 man/sd_bus_creds_get_mask.3: man/sd_bus_creds_new_from_pid.3 @@ -896,6 +898,9 @@ man/sd_bus_creds_get_cmdline.html: man/sd_bus_creds_get_pid.html man/sd_bus_creds_get_comm.html: man/sd_bus_creds_get_pid.html $(html-alias) +man/sd_bus_creds_get_connection_name.html: man/sd_bus_creds_get_pid.html + $(html-alias) + man/sd_bus_creds_get_exe.html: man/sd_bus_creds_get_pid.html $(html-alias) diff --git a/man/sd_bus_creds_get_pid.xml b/man/sd_bus_creds_get_pid.xml index fcc5557163a..cc8603cacce 100644 --- a/man/sd_bus_creds_get_pid.xml +++ b/man/sd_bus_creds_get_pid.xml @@ -67,6 +67,7 @@ along with systemd; If not, see . sd_bus_creds_get_audit_login_uid sd_bus_creds_get_unique_name sd_bus_creds_get_well_known_names + sd_bus_creds_get_connection_name Retrieve fields from a credentials object @@ -219,6 +220,12 @@ along with systemd; If not, see . char ***name + + int sd_bus_creds_get_connection_name + sd_bus_creds *c + const char **name + + @@ -352,6 +359,13 @@ along with systemd; If not, see . url="http://dbus.freedesktop.org/doc/dbus-specification.html#message-protocol-names-bus">The D-Bus specification. + sd_bus_creds_get_connection_name() will + retrieve a descriptive name of the bus connection of the + peer. This name is useful to discern multiple bus connections by + the same peer, and may be altered by the peer with the + sd_bus_set_name()3 + call. + All functions that take a const char** parameter will store the answer there as an address of a NUL-terminated string. It will be valid as long as