From 4bd859be95e6024ed6020a5f7bed4e8ae9002fc3 Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Wed, 18 Mar 2020 20:47:49 +0100 Subject: [PATCH] sd-bus: add sd_bus_message_seal docs + cleanups --- man/rules/meson.build | 1 + man/sd-bus.xml | 1 + man/sd_bus_message_seal.xml | 106 +++++++++++++++++++++++++ man/sd_bus_set_method_call_timeout.xml | 1 - 4 files changed, 108 insertions(+), 1 deletion(-) create mode 100644 man/sd_bus_message_seal.xml diff --git a/man/rules/meson.build b/man/rules/meson.build index 0e4c26d074..21c92a3f12 100644 --- a/man/rules/meson.build +++ b/man/rules/meson.build @@ -281,6 +281,7 @@ manpages = [ ['sd_bus_message_read_array', '3', [], ''], ['sd_bus_message_read_basic', '3', [], ''], ['sd_bus_message_rewind', '3', [], ''], + ['sd_bus_message_seal', '3', [], ''], ['sd_bus_message_sensitive', '3', [], ''], ['sd_bus_message_set_destination', '3', diff --git a/man/sd-bus.xml b/man/sd-bus.xml index fb55a1b526..4232dcbe50 100644 --- a/man/sd-bus.xml +++ b/man/sd-bus.xml @@ -77,6 +77,7 @@ sd_bus_message_read_array3, sd_bus_message_read_basic3, sd_bus_message_rewind3, +sd_bus_message_seal3, sd_bus_message_set_destination3, sd_bus_message_set_expect_reply3, sd_bus_message_skip3, diff --git a/man/sd_bus_message_seal.xml b/man/sd_bus_message_seal.xml new file mode 100644 index 0000000000..03783d9279 --- /dev/null +++ b/man/sd_bus_message_seal.xml @@ -0,0 +1,106 @@ + + + + + + + + sd_bus_message_seal + systemd + + + + sd_bus_message_seal + 3 + + + + sd_bus_message_seal + + Prepare a D-Bus message for transmission + + + + + #include <systemd/sd-bus.h> + + + int sd_bus_message_seal + sd_bus_message *m + uint64_t cookie + uint64_t timeout_usec + + + + + + Description + + sd_bus_message_seal() finishes the message m + and prepares it for transmission using + sd_bus_send3. + cookie specifies the identifier used to match the message reply to its + corresponding request. timeout_usec specifies the maximum time in + microseconds to wait for a reply to arrive. + + Note that in most scenarios, it's not necessary to call this function directly. + sd_bus_call3, + sd_bus_call_async3 and + sd_bus_send3 + will seal any given messages if they have not been sealed yet. + + + + Return Value + + On success, this function returns a non-negative integer. On failure, it returns a + negative errno-style error code. + + + Errors + + Returned errors may indicate the following problems: + + + + -EINVAL + + The m parameter is NULL. + + + + + -EBADMSG + + The D-Bus message m has open containers. + + + + + -ENOMSG + + The D-Bus message m is a reply but its type + signature does not match the return type signature of its corresponding member in the + object vtable. + + + + + + + + + See Also + + + systemd1, + sd-bus3, + sd_bus_call3, + sd_bus_call_async3, + sd_bus_send3 + + + + diff --git a/man/sd_bus_set_method_call_timeout.xml b/man/sd_bus_set_method_call_timeout.xml index 01857fdf20..76c938442d 100644 --- a/man/sd_bus_set_method_call_timeout.xml +++ b/man/sd_bus_set_method_call_timeout.xml @@ -97,7 +97,6 @@ systemd1, sd-bus3, sd_bus_call3, - sd_bus_message_seal3