]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
man: Speicfy exact return values of sd_bus_message_enter_container
authorigo95862 <igo95862@yandex.ru>
Fri, 27 Nov 2020 13:51:18 +0000 (16:51 +0300)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 30 Nov 2020 11:21:20 +0000 (12:21 +0100)
man/sd_bus_message_open_container.xml

index 27b953ecc190c1170051b3d9106e1fb531827bc9..89c75f0e91edc88481648ec8bfdbc76dce6dafbd 100644 (file)
   <refsect1>
     <title>Return Value</title>
 
-    <para>On success, these functions return a non-negative integer. On failure, they return a negative
-    errno-style error code.</para>
+    <para>On success, these functions return a non-negative integer.
+    <function>sd_bus_message_open_container()</function> and <function>sd_bus_message_close_container()</function>
+    return 0.
+    <function>sd_bus_message_enter_container()</function> returns 1 if it successfully opened a new container, and 0 if
+    that was not possible because the end of the currently open container or message was reached.
+    <function>sd_bus_message_exit_container()</function> returns 1 on success.
+    On failure, all of these functions return a negative errno-style error code.</para>
 
     <refsect2>
       <title>Errors</title>