svn_config_enumerate2

Function svn_config_enumerate2 

Source
pub unsafe extern "C" fn svn_config_enumerate2(
    cfg: *mut svn_config_t,
    section: *const c_char,
    callback: svn_config_enumerator2_t,
    baton: *mut c_void,
    pool: *mut apr_pool_t,
) -> c_int
Expand description

Enumerate the options in @a section, passing @a baton and the current option’s name and value to @a callback. Continue the enumeration if @a callback returns @c TRUE. Return the number of times @a callback was called.

§kff asks: A more usual interface is to continue enumerating

while @a callback does not return error, and if @a callback does
return error, to return the same error (or a wrapping of it)
from svn_config_enumerate().  What's the use case for
svn_config_enumerate()?  Is it more likely to need to break out
of an enumeration early, with no error, than an invocation of
@a callback is likely to need to return an error? ###

@a callback’s @a name and @a value parameters are only valid for the duration of the call.

@since New in 1.3.