svn_wc_context_create

Function svn_wc_context_create 

Source
pub unsafe extern "C" fn svn_wc_context_create(
    wc_ctx: *mut *mut svn_wc_context_t,
    config: *const svn_config_t,
    result_pool: *mut apr_pool_t,
    scratch_pool: *mut apr_pool_t,
) -> *mut svn_error_t
Expand description

Create a context for the working copy, and return it in @a *wc_ctx. This context is not associated with a particular working copy, but as operations are performed, will load the appropriate working copy information.

@a config should hold the various configuration options that may apply to this context. It should live at least as long as @a result_pool. It may be @c NULL.

The context will be allocated in @a result_pool, and will use @a result_pool for any internal allocations requiring the same longevity as the context. The context will be automatically destroyed, and its resources released, when @a result_pool is cleared, or it may be manually destroyed by invoking svn_wc_context_destroy().

Use @a scratch_pool for temporary allocations. It may be cleared immediately upon returning from this function.

@since New in 1.7.