svn_stream_open_readonly

Function svn_stream_open_readonly 

Source
pub unsafe extern "C" fn svn_stream_open_readonly(
    stream: *mut *mut svn_stream_t,
    path: *const c_char,
    result_pool: *mut apr_pool_t,
    scratch_pool: *mut apr_pool_t,
) -> *mut svn_error_t
Expand description

Create a stream to read the file at @a path. It will be opened using the APR_BUFFERED and APR_BINARY flag, and APR_OS_DEFAULT for the perms. If you’d like to use different values, then open the file yourself, and use the svn_stream_from_aprfile2() interface.

The stream will be returned in @a stream, and allocated from @a result_pool. Temporary allocations will be performed in @a scratch_pool.

@since New in 1.6