#[repr(C)]pub struct svn_ra_callbacks2_t {Show 14 fields
pub open_tmp_file: Option<unsafe extern "C" fn(fp: *mut *mut apr_file_t, callback_baton: *mut c_void, pool: *mut apr_pool_t) -> *mut svn_error_t>,
pub auth_baton: *mut svn_auth_baton_t,
pub get_wc_prop: svn_ra_get_wc_prop_func_t,
pub set_wc_prop: svn_ra_set_wc_prop_func_t,
pub push_wc_prop: svn_ra_push_wc_prop_func_t,
pub invalidate_wc_props: svn_ra_invalidate_wc_props_func_t,
pub progress_func: svn_ra_progress_notify_func_t,
pub progress_baton: *mut c_void,
pub cancel_func: svn_cancel_func_t,
pub get_client_string: svn_ra_get_client_string_func_t,
pub get_wc_contents: svn_ra_get_wc_contents_func_t,
pub check_tunnel_func: svn_ra_check_tunnel_func_t,
pub open_tunnel_func: svn_ra_open_tunnel_func_t,
pub tunnel_baton: *mut c_void,
}
Expand description
A collection of callbacks implemented by libsvn_client which allows an RA layer to “pull” information from the client application, or possibly store information. libsvn_client passes this vtable to svn_ra_open5().
Each routine takes a @a callback_baton originally provided with the vtable.
Clients must use svn_ra_create_callbacks() to allocate and initialize this structure.
@since New in 1.3.
Fields§
§open_tmp_file: Option<unsafe extern "C" fn(fp: *mut *mut apr_file_t, callback_baton: *mut c_void, pool: *mut apr_pool_t) -> *mut svn_error_t>
Open a unique temporary file for writing in the working copy. This file will be automatically deleted when @a fp is closed.
@deprecated This callback should no longer be used by RA layers.
auth_baton: *mut svn_auth_baton_t
An authentication baton, created by the application, which is capable of retrieving all known types of credentials.
get_wc_prop: svn_ra_get_wc_prop_func_t
Fetch working copy properties.
@note we might have a problem if the RA layer ever wants a property that corresponds to a different revision of the file than what is in the WC. we’ll cross that bridge one day…
set_wc_prop: svn_ra_set_wc_prop_func_t
Immediately set new values for working copy properties.
push_wc_prop: svn_ra_push_wc_prop_func_t
Schedule new values for working copy properties.
invalidate_wc_props: svn_ra_invalidate_wc_props_func_t
Invalidate working copy properties.
progress_func: svn_ra_progress_notify_func_t
Notification callback used for progress information. May be NULL if not used.
progress_baton: *mut c_void
Notification callback baton, used with progress_func.
cancel_func: svn_cancel_func_t
Cancellation function
As its baton, the general callback baton is used
@since New in 1.5
get_client_string: svn_ra_get_client_string_func_t
Client string customization callback function @since New in 1.5
get_wc_contents: svn_ra_get_wc_contents_func_t
Working copy file content fetching function. @since New in 1.8.
check_tunnel_func: svn_ra_check_tunnel_func_t
Check-tunnel callback
If not @c NULL, and open_tunnel_func is also not @c NULL, this callback will be invoked to check if open_tunnel_func should be used to create a specific tunnel, or if the default tunnel implementation (either built-in or configured in the client configuration file) should be used instead. @since New in 1.9.
open_tunnel_func: svn_ra_open_tunnel_func_t
Open-tunnel callback
If not @c NULL, this callback will be invoked to create a tunnel for a ra_svn connection that needs one, overriding any tunnel definitions in the client config file. This callback is used only for ra_svn and ignored by the other RA modules. @since New in 1.9.
tunnel_baton: *mut c_void
A baton used with open_tunnel_func and close_tunnel_func. @since New in 1.9.
Trait Implementations§
Source§impl Clone for svn_ra_callbacks2_t
impl Clone for svn_ra_callbacks2_t
Source§fn clone(&self) -> svn_ra_callbacks2_t
fn clone(&self) -> svn_ra_callbacks2_t
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more