svn_wc_adm_open_anchor

Function svn_wc_adm_open_anchor 

Source
pub unsafe extern "C" fn svn_wc_adm_open_anchor(
    anchor_access: *mut *mut svn_wc_adm_access_t,
    target_access: *mut *mut svn_wc_adm_access_t,
    target: *mut *const c_char,
    path: *const c_char,
    write_lock: svn_boolean_t,
    levels_to_lock: c_int,
    cancel_func: svn_cancel_func_t,
    cancel_baton: *mut c_void,
    pool: *mut apr_pool_t,
) -> *mut svn_error_t
Expand description

Open access batons for @a path and return in @a *anchor_access and @a *target the anchor and target required to drive an editor. Return in @a *target_access the access baton for the target, which may be the same as @a *anchor_access (in which case @a *target is the empty string, never NULL). All the access batons will be in the @a *anchor_access set.

@a levels_to_lock determines the levels_to_lock used when opening @a path if @a path is a versioned directory, @a levels_to_lock is ignored otherwise. If @a write_lock is @c TRUE the access batons will hold write locks.

If @a cancel_func is non-NULL, call it with @a cancel_baton to determine if the client has canceled the operation.

This function is essentially a combination of svn_wc_adm_open3() and svn_wc_get_actual_target(), with the emphasis on reducing physical IO.

@since New in 1.2. @deprecated Provided for backward compatibility with the 1.6 API. Callers should use a #svn_wc_context_t object to access the working copy.