svn_delta_path_driver3

Function svn_delta_path_driver3 

Source
pub unsafe extern "C" fn svn_delta_path_driver3(
    editor: *const svn_delta_editor_t,
    edit_baton: *mut c_void,
    relpaths: *const apr_array_header_t,
    sort_paths: svn_boolean_t,
    callback_func: svn_delta_path_driver_cb_func2_t,
    callback_baton: *mut c_void,
    pool: *mut apr_pool_t,
) -> *mut svn_error_t
Expand description

Drive @a editor (with its @a edit_baton) to visit each path in @a relpaths.

As each path is hit as part of the editor drive, use @a callback_func and @a callback_baton to allow the caller to handle the portion of the editor drive related to that path.

Each path in @a relpaths is a (const char *) relpath, relative to the root path of the edit. The editor drive will be performed in the same order as @a relpaths. The paths should be sorted using something like svn_sort_compare_paths() to ensure that each directory in the depth-first walk is visited only once. If @a sort_paths is set, the function will sort the paths for you. Some callers may need further customization of the order (ie. libsvn_delta/compat.c).

If the first target path (after any requested sorting) is @c “” (the root of the edit), the callback function will be responsible for calling the editor’s @c open_root method; otherwise, this function will call @c open_root.

Use @a scratch_pool for all necessary allocations.

@since New in 1.12.