From 46fdbae32ea3865534462c659cdd8b54cfcb4992 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Thu, 2 Aug 2018 10:38:51 +0200 Subject: [PATCH] man: add sd_bus_message_rewind(3) --- man/rules/meson.build | 1 + man/sd-bus.xml | 1 + man/sd_bus_message_rewind.xml | 88 +++++++++++++++++++++++++++++++++++ 3 files changed, 90 insertions(+) create mode 100644 man/sd_bus_message_rewind.xml diff --git a/man/rules/meson.build b/man/rules/meson.build index 26ac2fcf24c..2edf2c21c23 100644 --- a/man/rules/meson.build +++ b/man/rules/meson.build @@ -243,6 +243,7 @@ manpages = [ ['sd_bus_message_new_signal', '3', [], ''], ['sd_bus_message_read', '3', ['sd_bus_message_readv'], ''], ['sd_bus_message_read_basic', '3', [], ''], + ['sd_bus_message_rewind', '3', [], ''], ['sd_bus_message_set_destination', '3', ['sd_bus_message_get_destination', diff --git a/man/sd-bus.xml b/man/sd-bus.xml index b2cf3069939..3daafc44953 100644 --- a/man/sd-bus.xml +++ b/man/sd-bus.xml @@ -67,6 +67,7 @@ sd_bus_message_new_signal3, sd_bus_message_read_basic3, sd_bus_message_read3, +sd_bus_message_rewind3, sd_bus_message_set_destination3, sd_bus_message_set_expect_reply3, sd_bus_message_verify_type3, diff --git a/man/sd_bus_message_rewind.xml b/man/sd_bus_message_rewind.xml new file mode 100644 index 00000000000..c420c2f1d59 --- /dev/null +++ b/man/sd_bus_message_rewind.xml @@ -0,0 +1,88 @@ + + + + + + + + sd_bus_message_rewind + systemd + + + + sd_bus_message_rewind + 3 + + + + sd_bus_message_rewind + + Return to begining of message or current container + + + + + #include <systemd/sd-bus.h> + + + int sd_bus_message_rewind + sd_bus_message *m + int complete + + + + + + Description + + sd_bus_message_rewind() moves the "read pointer" in the message + m to either the begining of the message (if + complete is true) or to the beginning of the currently open container. If + no container is open, complete has no effect. + + + + Return Value + + + On success, this function returns 0 or a positive integer. The value is zero if the current + container or whole message in case no container is open is empty, and positive otherwise. On + failure, it returns a negative errno-style error code. + + + + + + + Errors + + Returned errors may indicate the following problems: + + + + -EINVAL + + The m parameter is NULL. + + + + -EPERM + + The message m has not been sealed. + + + + + + See Also + + + systemd1, + sd-bus3, + sd_bus_message_read3 + + + +