mirror of
https://github.com/systemd/systemd.git
synced 2024-10-26 17:27:41 +03:00
man: fix sd_bus_add_node_enumerator() ret_nodes
ret_nodes is NULL terminated, the return value isn't a count.
This commit is contained in:
parent
21d03e6c63
commit
e65357b658
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user