diff --git a/man/rules/meson.build b/man/rules/meson.build
index a25fff09b9..55923b700a 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 62823d2780..780e1834b2 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 7c5e0df617..2b962413d2 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