From: Daan De Meyer Date: Thu, 23 Apr 2020 19:40:52 +0000 (+0200) Subject: sd-bus: Add sd_bus_message_get_creds docs X-Git-Tag: v246-rc1~503 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=68b5003bc1fae2ed29b71998647b01a1a5244232;p=thirdparty%2Fsystemd.git sd-bus: Add sd_bus_message_get_creds docs --- diff --git a/man/rules/meson.build b/man/rules/meson.build index a25fff09b96..55923b700a8 100644 --- a/man/rules/meson.build +++ b/man/rules/meson.build @@ -292,7 +292,8 @@ manpages = [ ''], ['sd_bus_message_get_type', '3', - ['sd_bus_message_get_errno', + ['sd_bus_message_get_creds', + 'sd_bus_message_get_errno', 'sd_bus_message_get_error', 'sd_bus_message_is_method_call', 'sd_bus_message_is_method_error', diff --git a/man/sd-bus.xml b/man/sd-bus.xml index 62823d2780f..780e1834b2d 100644 --- a/man/sd-bus.xml +++ b/man/sd-bus.xml @@ -103,6 +103,7 @@ sd_bus_message_exit_container3, sd_bus_message_get_allow_interactive_authorization3, sd_bus_message_get_cookie3, +sd_bus_message_get_creds3, sd_bus_message_get_errno3, sd_bus_message_get_error3, sd_bus_message_get_monotonic_usec3, diff --git a/man/sd_bus_message_get_type.xml b/man/sd_bus_message_get_type.xml index 7c5e0df6175..2b962413d2a 100644 --- a/man/sd_bus_message_get_type.xml +++ b/man/sd_bus_message_get_type.xml @@ -19,11 +19,12 @@ sd_bus_message_get_type sd_bus_message_get_error sd_bus_message_get_errno + sd_bus_message_get_creds sd_bus_message_is_signal sd_bus_message_is_method_call sd_bus_message_is_method_error - Query bus message addressing metadata + Query bus message addressing/credentials metadata @@ -46,6 +47,11 @@ sd_bus_message *m + + sd_bus_creds* sd_bus_message_get_creds + sd_bus_message *m + + int sd_bus_message_is_signal sd_bus_message *m @@ -93,6 +99,11 @@ sd_bus_error_add_map3. + sd_bus_message_get_creds() returns the message credentials attached to the + message m. If no credentials are attached to the message, it returns + NULL. Ownership of the credentials instance is not transferred to the caller and + hence should not be freed. + sd_bus_message_is_signal() checks if message m is a signal message. If interface is non-null, it also checks if the message has the same interface set. If member is non-null, it also checks if the message has the @@ -117,9 +128,10 @@ Return Value - On success, these functions return a non-negative integer. On failure, they return a negative - errno-style error code. sd_bus_message_get_errno() always returns a non-negative - integer, even on failure. + On success, these functions (except sd_bus_message_get_error() and + sd_bus_message_get_creds()) return a non-negative integer. On failure, they return a + negative errno-style error code. sd_bus_message_get_errno() always returns a + non-negative integer, even on failure. Errors