svn_repos_open3

Function svn_repos_open3 

Source
pub unsafe extern "C" fn svn_repos_open3(
    repos_p: *mut *mut svn_repos_t,
    path: *const c_char,
    fs_config: *mut apr_hash_t,
    result_pool: *mut apr_pool_t,
    scratch_pool: *mut apr_pool_t,
) -> *mut svn_error_t
Expand description

Set @a *repos_p to a repository object for the repository at @a path.

Allocate @a *repos_p in @a result_pool.

Acquires a shared lock on the repository, and attaches a cleanup function to @a result_pool to remove the lock. If no lock can be acquired, returns error, with undefined effect on @a *repos_p. If an exclusive lock is present, this blocks until it’s gone. @a fs_config will be passed to the filesystem initialization function and may be @c NULL.

Use @a scratch_pool for temporary allocations.

@since New in 1.9.