svn_fs_open2

Function svn_fs_open2 

Source
pub unsafe extern "C" fn svn_fs_open2(
    fs_p: *mut *mut svn_fs_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

Open a Subversion filesystem located in the directory @a path, and return a pointer to it in @a *fs_p. If @a fs_config is not @c NULL, the options it contains modify the behavior of the filesystem. The interpretation of @a fs_config is specific to the filesystem back-end. The opened filesystem will be allocated in @a result_pool may be closed by clearing or destroying that pool. Use @a scratch_pool for temporary allocations.

@note The lifetime of @a fs_config must not be shorter than @a result_pool’s. It’s a good idea to allocate @a fs_config from @a result_pool or one of its ancestors.

Only one thread may operate on any given filesystem object at once. Two threads may access the same filesystem simultaneously only if they open separate filesystem objects.

@note You probably don’t want to use this directly. Take a look at svn_repos_open3() instead.

@since New in 1.9.