From c5fd8c39954c4777f92a3b642c3a9d48f5b9baac Mon Sep 17 00:00:00 2001 From: =?utf8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Sun, 8 Jul 2018 13:51:18 +0200 Subject: [PATCH] man: add sd_bus_message_copy(3) --- man/rules/meson.build | 1 + man/sd-bus.xml | 1 + man/sd_bus_message_copy.xml | 115 ++++++++++++++++++++++++++++++++++++ 3 files changed, 117 insertions(+) create mode 100644 man/sd_bus_message_copy.xml diff --git a/man/rules/meson.build b/man/rules/meson.build index 18b00ef6299..74f057c0134 100644 --- a/man/rules/meson.build +++ b/man/rules/meson.build @@ -204,6 +204,7 @@ manpages = [ ['sd_bus_message_append_string_iovec', 'sd_bus_message_append_string_space'], ''], ['sd_bus_message_append_strv', '3', [], ''], + ['sd_bus_message_copy', '3', [], ''], ['sd_bus_message_get_cookie', '3', ['sd_bus_message_get_reply_cookie'], ''], ['sd_bus_message_get_monotonic_usec', '3', diff --git a/man/sd-bus.xml b/man/sd-bus.xml index 220103bc43b..627c7195ed1 100644 --- a/man/sd-bus.xml +++ b/man/sd-bus.xml @@ -57,6 +57,7 @@ sd_bus_message_append_basic3, sd_bus_message_append_string_memfd3, sd_bus_message_append_strv3, +sd_bus_message_copy3, sd_bus_message_get_cookie3, sd_bus_message_get_monotonic_usec3, sd_bus_message_new_method_error3, diff --git a/man/sd_bus_message_copy.xml b/man/sd_bus_message_copy.xml new file mode 100644 index 00000000000..ac2a4f32b9f --- /dev/null +++ b/man/sd_bus_message_copy.xml @@ -0,0 +1,115 @@ + + + + + + + + + sd_bus_message_copy + systemd + + + + sd_bus_message_copy + 3 + + + + sd_bus_message_copy + + Copy the contents of one message to another + + + + + #include <systemd/sd-bus.h> + + + int sd_bus_message_copy + sd_bus_message *m + sd_bus_message *source + int all + + + + + + Description + + sd_bus_message_copy() copies the contents from + message source to m. If + all is false, a single complete type is copied + (basic or container). If all is true, the contents + are copied until the end of the currently open container or the end + of source. + + + + Return Value + + On success, this call returns true if anything was copied, and false if + there was nothing to copy. On failure, it returns a negative errno-style error + code. + + + + Errors + + Returned errors may indicate the following problems: + + + + + -EINVAL + + source or m are + NULL. + + + + -EPERM + + Message m has been sealed or + source has not been sealed. + + + + + -ESTALE + + Destination message is in invalid state. + + + + + -ENXIO + + Destination message cannot be appended to. + + + + + -ENOMEM + + Memory allocation failed. + + + + + + + + See Also + + + systemd1, + sd-bus3, + sd_bus_message_append3 + + + + -- 2.39.2