diff --git a/man/sd_bus_add_node_enumerator.xml b/man/sd_bus_add_node_enumerator.xml index da3989ef94b..c6beb1dcd1b 100644 --- a/man/sd_bus_add_node_enumerator.xml +++ b/man/sd_bus_add_node_enumerator.xml @@ -58,8 +58,9 @@ callback is called with the path and userdata pointer registered with sd_bus_add_node_enumerator(). When called, it should store all the - child object paths of the given path prefix in ret_nodes 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 ret_nodes 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 ret_error 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 ret_error take priority over negative return values.