svn_repos_authz_read4

Function svn_repos_authz_read4 

Source
pub unsafe extern "C" fn svn_repos_authz_read4(
    authz_p: *mut *mut svn_authz_t,
    path: *const c_char,
    groups_path: *const c_char,
    must_exist: svn_boolean_t,
    repos_hint: *mut svn_repos_t,
    warning_func: svn_repos_authz_warning_func_t,
    warning_baton: *mut c_void,
    result_pool: *mut apr_pool_t,
    scratch_pool: *mut apr_pool_t,
) -> *mut svn_error_t
Expand description

Read authz configuration data from @a path (a dirent, an absolute file url or a registry path) into @a *authz_p, allocated in @a pool.

If @a groups_path (a dirent, an absolute file url, or a registry path) is set, use the global groups parsed from it.

If @a path or @a groups_path is not a valid authz rule file, then return #SVN_ERR_AUTHZ_INVALID_CONFIG. The contents of @a *authz_p is then undefined. If @a must_exist is TRUE, a missing authz or groups file is also an error other than #SVN_ERR_AUTHZ_INVALID_CONFIG (exact error depends on the access type).

For efficient access of in-repository authz, you may provide @a repos_hint which will be tried first and may remove the need to open a temporary repository instance. Otherwise, set it to NULL and the repositories will be opened as needed.

If the @a warning_func callback is not @c NULL, it is called (with @a warning_baton) to report non-fatal warnings emitted by the parser.

@since New in 1.12.