svn_ra_plugin_t

Struct svn_ra_plugin_t 

Source
#[repr(C)]
pub struct svn_ra_plugin_t {
Show 22 fields pub name: *const c_char, pub description: *const c_char, pub open: Option<unsafe extern "C" fn(session_baton: *mut *mut c_void, repos_URL: *const c_char, callbacks: *const svn_ra_callbacks_t, callback_baton: *mut c_void, config: *mut apr_hash_t, pool: *mut apr_pool_t) -> *mut svn_error_t>, pub get_latest_revnum: Option<unsafe extern "C" fn(session_baton: *mut c_void, latest_revnum: *mut svn_revnum_t, pool: *mut apr_pool_t) -> *mut svn_error_t>, pub get_dated_revision: Option<unsafe extern "C" fn(session_baton: *mut c_void, revision: *mut svn_revnum_t, tm: apr_time_t, pool: *mut apr_pool_t) -> *mut svn_error_t>, pub change_rev_prop: Option<unsafe extern "C" fn(session_baton: *mut c_void, rev: svn_revnum_t, name: *const c_char, value: *const svn_string_t, pool: *mut apr_pool_t) -> *mut svn_error_t>, pub rev_proplist: Option<unsafe extern "C" fn(session_baton: *mut c_void, rev: svn_revnum_t, props: *mut *mut apr_hash_t, pool: *mut apr_pool_t) -> *mut svn_error_t>, pub rev_prop: Option<unsafe extern "C" fn(session_baton: *mut c_void, rev: svn_revnum_t, name: *const c_char, value: *mut *mut svn_string_t, pool: *mut apr_pool_t) -> *mut svn_error_t>, pub get_commit_editor: Option<unsafe extern "C" fn(session_baton: *mut c_void, editor: *mut *const svn_delta_editor_t, edit_baton: *mut *mut c_void, log_msg: *const c_char, callback: svn_commit_callback_t, callback_baton: *mut c_void, pool: *mut apr_pool_t) -> *mut svn_error_t>, pub get_file: Option<unsafe extern "C" fn(session_baton: *mut c_void, path: *const c_char, revision: svn_revnum_t, stream: *mut svn_stream_t, fetched_rev: *mut svn_revnum_t, props: *mut *mut apr_hash_t, pool: *mut apr_pool_t) -> *mut svn_error_t>, pub get_dir: Option<unsafe extern "C" fn(session_baton: *mut c_void, path: *const c_char, revision: svn_revnum_t, dirents: *mut *mut apr_hash_t, fetched_rev: *mut svn_revnum_t, props: *mut *mut apr_hash_t, pool: *mut apr_pool_t) -> *mut svn_error_t>, pub do_update: Option<unsafe extern "C" fn(session_baton: *mut c_void, reporter: *mut *const svn_ra_reporter_t, report_baton: *mut *mut c_void, revision_to_update_to: svn_revnum_t, update_target: *const c_char, recurse: svn_boolean_t, update_editor: *const svn_delta_editor_t, update_baton: *mut c_void, pool: *mut apr_pool_t) -> *mut svn_error_t>, pub do_switch: Option<unsafe extern "C" fn(session_baton: *mut c_void, reporter: *mut *const svn_ra_reporter_t, report_baton: *mut *mut c_void, revision_to_switch_to: svn_revnum_t, switch_target: *const c_char, recurse: svn_boolean_t, switch_url: *const c_char, switch_editor: *const svn_delta_editor_t, switch_baton: *mut c_void, pool: *mut apr_pool_t) -> *mut svn_error_t>, pub do_status: Option<unsafe extern "C" fn(session_baton: *mut c_void, reporter: *mut *const svn_ra_reporter_t, report_baton: *mut *mut c_void, status_target: *const c_char, revision: svn_revnum_t, recurse: svn_boolean_t, status_editor: *const svn_delta_editor_t, status_baton: *mut c_void, pool: *mut apr_pool_t) -> *mut svn_error_t>, pub do_diff: Option<unsafe extern "C" fn(session_baton: *mut c_void, reporter: *mut *const svn_ra_reporter_t, report_baton: *mut *mut c_void, revision: svn_revnum_t, diff_target: *const c_char, recurse: svn_boolean_t, ignore_ancestry: svn_boolean_t, versus_url: *const c_char, diff_editor: *const svn_delta_editor_t, diff_baton: *mut c_void, pool: *mut apr_pool_t) -> *mut svn_error_t>, pub get_log: Option<unsafe extern "C" fn(session_baton: *mut c_void, paths: *const apr_array_header_t, start: svn_revnum_t, end: svn_revnum_t, discover_changed_paths: svn_boolean_t, strict_node_history: svn_boolean_t, receiver: svn_log_message_receiver_t, receiver_baton: *mut c_void, pool: *mut apr_pool_t) -> *mut svn_error_t>, pub check_path: Option<unsafe extern "C" fn(session_baton: *mut c_void, path: *const c_char, revision: svn_revnum_t, kind: *mut svn_node_kind_t, pool: *mut apr_pool_t) -> *mut svn_error_t>, pub get_uuid: Option<unsafe extern "C" fn(session_baton: *mut c_void, uuid: *mut *const c_char, pool: *mut apr_pool_t) -> *mut svn_error_t>, pub get_repos_root: Option<unsafe extern "C" fn(session_baton: *mut c_void, url: *mut *const c_char, pool: *mut apr_pool_t) -> *mut svn_error_t>, pub get_locations: Option<unsafe extern "C" fn(session_baton: *mut c_void, locations: *mut *mut apr_hash_t, path: *const c_char, peg_revision: svn_revnum_t, location_revisions: *mut apr_array_header_t, pool: *mut apr_pool_t) -> *mut svn_error_t>, pub get_file_revs: Option<unsafe extern "C" fn(session_baton: *mut c_void, path: *const c_char, start: svn_revnum_t, end: svn_revnum_t, handler: svn_ra_file_rev_handler_t, handler_baton: *mut c_void, pool: *mut apr_pool_t) -> *mut svn_error_t>, pub get_version: Option<unsafe extern "C" fn() -> *const svn_version_t>,
}
Expand description

Using this callback struct is similar to calling the newer public interface that is based on @c svn_ra_session_t.

@deprecated Provided for backward compatibility with the 1.1 API.

Fields§

§name: *const c_char

The proper name of the RA library, (like “ra_serf” or “ra_local”)

§description: *const c_char

Short doc string printed out by svn --version

§open: Option<unsafe extern "C" fn(session_baton: *mut *mut c_void, repos_URL: *const c_char, callbacks: *const svn_ra_callbacks_t, callback_baton: *mut c_void, config: *mut apr_hash_t, pool: *mut apr_pool_t) -> *mut svn_error_t>

Call svn_ra_open() and set @a session_baton to an object representing the new session. All other arguments are passed to svn_ra_open().

§get_latest_revnum: Option<unsafe extern "C" fn(session_baton: *mut c_void, latest_revnum: *mut svn_revnum_t, pool: *mut apr_pool_t) -> *mut svn_error_t>

Call svn_ra_get_latest_revnum() with the session associated with @a session_baton and all other arguments.

§get_dated_revision: Option<unsafe extern "C" fn(session_baton: *mut c_void, revision: *mut svn_revnum_t, tm: apr_time_t, pool: *mut apr_pool_t) -> *mut svn_error_t>

Call svn_ra_get_dated_revision() with the session associated with @a session_baton and all other arguments.

§change_rev_prop: Option<unsafe extern "C" fn(session_baton: *mut c_void, rev: svn_revnum_t, name: *const c_char, value: *const svn_string_t, pool: *mut apr_pool_t) -> *mut svn_error_t>

Call svn_ra_change_rev_prop() with the session associated with @a session_baton and all other arguments.

§rev_proplist: Option<unsafe extern "C" fn(session_baton: *mut c_void, rev: svn_revnum_t, props: *mut *mut apr_hash_t, pool: *mut apr_pool_t) -> *mut svn_error_t>

Call svn_ra_rev_proplist() with the session associated with @a session_baton and all other arguments.

§rev_prop: Option<unsafe extern "C" fn(session_baton: *mut c_void, rev: svn_revnum_t, name: *const c_char, value: *mut *mut svn_string_t, pool: *mut apr_pool_t) -> *mut svn_error_t>

Call svn_ra_rev_prop() with the session associated with @a session_baton and all other arguments.

§get_commit_editor: Option<unsafe extern "C" fn(session_baton: *mut c_void, editor: *mut *const svn_delta_editor_t, edit_baton: *mut *mut c_void, log_msg: *const c_char, callback: svn_commit_callback_t, callback_baton: *mut c_void, pool: *mut apr_pool_t) -> *mut svn_error_t>

Call svn_ra_get_commit_editor() with the session associated with @a session_baton and all other arguments plus @a lock_tokens set to @c NULL and @a keep_locks set to @c TRUE.

§get_file: Option<unsafe extern "C" fn(session_baton: *mut c_void, path: *const c_char, revision: svn_revnum_t, stream: *mut svn_stream_t, fetched_rev: *mut svn_revnum_t, props: *mut *mut apr_hash_t, pool: *mut apr_pool_t) -> *mut svn_error_t>

Call svn_ra_get_file() with the session associated with @a session_baton and all other arguments.

§get_dir: Option<unsafe extern "C" fn(session_baton: *mut c_void, path: *const c_char, revision: svn_revnum_t, dirents: *mut *mut apr_hash_t, fetched_rev: *mut svn_revnum_t, props: *mut *mut apr_hash_t, pool: *mut apr_pool_t) -> *mut svn_error_t>

Call svn_ra_get_dir() with the session associated with @a session_baton and all other arguments.

§do_update: Option<unsafe extern "C" fn(session_baton: *mut c_void, reporter: *mut *const svn_ra_reporter_t, report_baton: *mut *mut c_void, revision_to_update_to: svn_revnum_t, update_target: *const c_char, recurse: svn_boolean_t, update_editor: *const svn_delta_editor_t, update_baton: *mut c_void, pool: *mut apr_pool_t) -> *mut svn_error_t>

Call svn_ra_do_update() with the session associated with @a session_baton and all other arguments.

§do_switch: Option<unsafe extern "C" fn(session_baton: *mut c_void, reporter: *mut *const svn_ra_reporter_t, report_baton: *mut *mut c_void, revision_to_switch_to: svn_revnum_t, switch_target: *const c_char, recurse: svn_boolean_t, switch_url: *const c_char, switch_editor: *const svn_delta_editor_t, switch_baton: *mut c_void, pool: *mut apr_pool_t) -> *mut svn_error_t>

Call svn_ra_do_switch() with the session associated with @a session_baton and all other arguments.

§do_status: Option<unsafe extern "C" fn(session_baton: *mut c_void, reporter: *mut *const svn_ra_reporter_t, report_baton: *mut *mut c_void, status_target: *const c_char, revision: svn_revnum_t, recurse: svn_boolean_t, status_editor: *const svn_delta_editor_t, status_baton: *mut c_void, pool: *mut apr_pool_t) -> *mut svn_error_t>

Call svn_ra_do_status() with the session associated with @a session_baton and all other arguments.

§do_diff: Option<unsafe extern "C" fn(session_baton: *mut c_void, reporter: *mut *const svn_ra_reporter_t, report_baton: *mut *mut c_void, revision: svn_revnum_t, diff_target: *const c_char, recurse: svn_boolean_t, ignore_ancestry: svn_boolean_t, versus_url: *const c_char, diff_editor: *const svn_delta_editor_t, diff_baton: *mut c_void, pool: *mut apr_pool_t) -> *mut svn_error_t>

Call svn_ra_do_diff() with the session associated with @a session_baton and all other arguments.

§get_log: Option<unsafe extern "C" fn(session_baton: *mut c_void, paths: *const apr_array_header_t, start: svn_revnum_t, end: svn_revnum_t, discover_changed_paths: svn_boolean_t, strict_node_history: svn_boolean_t, receiver: svn_log_message_receiver_t, receiver_baton: *mut c_void, pool: *mut apr_pool_t) -> *mut svn_error_t>

Call svn_ra_get_log() with the session associated with @a session_baton and all other arguments. @a limit is set to 0.

§check_path: Option<unsafe extern "C" fn(session_baton: *mut c_void, path: *const c_char, revision: svn_revnum_t, kind: *mut svn_node_kind_t, pool: *mut apr_pool_t) -> *mut svn_error_t>

Call svn_ra_check_path() with the session associated with @a session_baton and all other arguments.

§get_uuid: Option<unsafe extern "C" fn(session_baton: *mut c_void, uuid: *mut *const c_char, pool: *mut apr_pool_t) -> *mut svn_error_t>

Call svn_ra_get_uuid() with the session associated with @a session_baton and all other arguments.

§get_repos_root: Option<unsafe extern "C" fn(session_baton: *mut c_void, url: *mut *const c_char, pool: *mut apr_pool_t) -> *mut svn_error_t>

Call svn_ra_get_repos_root() with the session associated with @a session_baton and all other arguments.

§get_locations: Option<unsafe extern "C" fn(session_baton: *mut c_void, locations: *mut *mut apr_hash_t, path: *const c_char, peg_revision: svn_revnum_t, location_revisions: *mut apr_array_header_t, pool: *mut apr_pool_t) -> *mut svn_error_t>

Call svn_ra_get_locations() with the session associated with @a session_baton and all other arguments.

@since New in 1.1.

§get_file_revs: Option<unsafe extern "C" fn(session_baton: *mut c_void, path: *const c_char, start: svn_revnum_t, end: svn_revnum_t, handler: svn_ra_file_rev_handler_t, handler_baton: *mut c_void, pool: *mut apr_pool_t) -> *mut svn_error_t>

Call svn_ra_get_file_revs() with the session associated with @a session_baton and all other arguments.

@since New in 1.1.

§get_version: Option<unsafe extern "C" fn() -> *const svn_version_t>

Return the plugin’s version information.

@since New in 1.1.

Trait Implementations§

Source§

impl Clone for svn_ra_plugin_t

Source§

fn clone(&self) -> svn_ra_plugin_t

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for svn_ra_plugin_t

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for svn_ra_plugin_t

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Copy for svn_ra_plugin_t

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.