summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Johnston <matt@codeconstruct.com.au>2021-06-15 11:49:26 +0800
committerLuca Boccassi <luca.boccassi@gmail.com>2021-06-15 11:29:44 +0100
commite65357b6585629ee2138e53d02face3914621a2e (patch)
tree7e044956c68c4a720eb4bcbe9978a63cb3f70535
parent21d03e6c631436bfe1f4577a7e3f027f817b8a7b (diff)
downloadsystemd-e65357b6585629ee2138e53d02face3914621a2e.tar.gz
man: fix sd_bus_add_node_enumerator() ret_nodes
ret_nodes is NULL terminated, the return value isn't a count.
-rw-r--r--man/sd_bus_add_node_enumerator.xml5
1 files changed, 3 insertions, 2 deletions
diff --git a/man/sd_bus_add_node_enumerator.xml b/man/sd_bus_add_node_enumerator.xml
index da3989ef94..c6beb1dcd1 100644
--- a/man/sd_bus_add_node_enumerator.xml
+++ b/man/sd_bus_add_node_enumerator.xml
@@ -58,8 +58,9 @@
<para><parameter>callback</parameter> is called with the path and userdata pointer registered
with <function>sd_bus_add_node_enumerator()</function>. When called, it should store all the
- child object paths of the given path prefix in <parameter>ret_nodes</parameter> and return the
- number of child objects under the given prefix. If an error occurs, it can either return a
+ child object paths of the given path prefix in <parameter>ret_nodes</parameter> with a NULL
+ terminator item. The callback should return a non-negative value on success.
+ If an error occurs, it can either return a
negative integer, set <parameter>ret_error</parameter> to a non-empty error or do both. Any
errors returned by the callback are encoded as D-Bus errors and sent back to the caller. Errors
in <parameter>ret_error</parameter> take priority over negative return values.</para>