#[repr(C)]pub struct svn_client_ctx_t {Show 26 fields
pub auth_baton: *mut svn_auth_baton_t,
pub notify_func: svn_wc_notify_func_t,
pub notify_baton: *mut c_void,
pub log_msg_func: svn_client_get_commit_log_t,
pub log_msg_baton: *mut c_void,
pub config: *mut apr_hash_t,
pub cancel_func: svn_cancel_func_t,
pub cancel_baton: *mut c_void,
pub notify_func2: svn_wc_notify_func2_t,
pub notify_baton2: *mut c_void,
pub log_msg_func2: svn_client_get_commit_log2_t,
pub log_msg_baton2: *mut c_void,
pub progress_func: svn_ra_progress_notify_func_t,
pub progress_baton: *mut c_void,
pub log_msg_func3: svn_client_get_commit_log3_t,
pub log_msg_baton3: *mut c_void,
pub mimetypes_map: *mut apr_hash_t,
pub conflict_func: svn_wc_conflict_resolver_func_t,
pub conflict_baton: *mut c_void,
pub client_name: *const c_char,
pub conflict_func2: svn_wc_conflict_resolver_func2_t,
pub conflict_baton2: *mut c_void,
pub wc_ctx: *mut svn_wc_context_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 client context structure, which holds client specific callbacks, batons, serves as a cache for configuration options, and other various and sundry things. In order to avoid backwards compatibility problems clients should use svn_client_create_context() to allocate and initialize this structure instead of doing so themselves.
Fields§
§auth_baton: *mut svn_auth_baton_tmain authentication baton.
notify_func: svn_wc_notify_func_tnotification callback function. This will be called by notify_func2() by default. @deprecated Provided for backward compatibility with the 1.1 API. Use @c notify_func2 instead.
notify_baton: *mut c_voidnotification callback baton for notify_func() @deprecated Provided for backward compatibility with the 1.1 API. Use @c notify_baton2 instead
log_msg_func: svn_client_get_commit_log_tLog message callback function. NULL means that Subversion should try not attempt to fetch a log message. @deprecated Provided for backward compatibility with the 1.2 API. Use @c log_msg_func2 instead.
log_msg_baton: *mut c_voidlog message callback baton @deprecated Provided for backward compatibility with the 1.2 API. Use @c log_msg_baton2 instead.
config: *mut apr_hash_ta hash mapping of const char * configuration file names to #svn_config_t *’s. For example, the ‘~/.subversion/config’ file’s contents should have the key “config”. May be left unset (or set to NULL) to use the built-in default settings and not use any configuration.
cancel_func: svn_cancel_func_ta callback to be used to see if the client wishes to cancel the running operation.
cancel_baton: *mut c_voida baton to pass to the cancellation callback.
notify_func2: svn_wc_notify_func2_tnotification function, defaulting to a function that forwards to notify_func(). If @c NULL, it will not be invoked. @since New in 1.2.
notify_baton2: *mut c_voidnotification baton for notify_func2(). @since New in 1.2.
log_msg_func2: svn_client_get_commit_log2_tLog message callback function. NULL means that Subversion should try log_msg_func. @since New in 1.3.
log_msg_baton2: *mut c_voidcallback baton for log_msg_func2 @since New in 1.3.
progress_func: svn_ra_progress_notify_func_tNotification callback for network progress information. May be NULL if not used. @since New in 1.3.
progress_baton: *mut c_voidCallback baton for progress_func. @since New in 1.3.
log_msg_func3: svn_client_get_commit_log3_tLog message callback function. NULL means that Subversion should try @c log_msg_func2, then @c log_msg_func. @since New in 1.5.
log_msg_baton3: *mut c_voidThe callback baton for @c log_msg_func3. @since New in 1.5.
mimetypes_map: *mut apr_hash_tMIME types map. @since New in 1.5.
conflict_func: svn_wc_conflict_resolver_func_tConflict resolution callback and baton, if available. @since New in 1.5.
conflict_baton: *mut c_void§client_name: *const c_charCustom client name string, or @c NULL. @since New in 1.5.
conflict_func2: svn_wc_conflict_resolver_func2_tConflict resolution callback and baton, if available. NULL means that subversion should try @c conflict_func. @since New in 1.7.
conflict_baton2: *mut c_void§wc_ctx: *mut svn_wc_context_tA working copy context for the client operation to use. This is initialized by svn_client_create_context() and should never be @c NULL.
@since New in 1.7.
check_tunnel_func: svn_ra_check_tunnel_func_tCheck-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_tOpen-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_voidThe baton used with check_tunnel_func and open_tunnel_func. @since New in 1.9.
Trait Implementations§
Source§impl Clone for svn_client_ctx_t
impl Clone for svn_client_ctx_t
Source§fn clone(&self) -> svn_client_ctx_t
fn clone(&self) -> svn_client_ctx_t
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more