Alien-SVN
view release on metacpan or search on metacpan
src/subversion/subversion/include/svn_ra.h view on Meta::CPAN
*/
typedef struct svn_ra_reporter_t
{
/** Similar to the corresponding field in @c svn_ra_reporter2_t, but
* with @a lock_token always set to NULL. */
svn_error_t *(*set_path)(void *report_baton,
const char *path,
svn_revnum_t revision,
svn_boolean_t start_empty,
apr_pool_t *pool);
/** Same as the corresponding field in @c svn_ra_reporter2_t. */
svn_error_t *(*delete_path)(void *report_baton,
const char *path,
apr_pool_t *pool);
/** Similar to the corresponding field in @c svn_ra_reporter2_t, but
* with @a lock_token always set to NULL. */
svn_error_t *(*link_path)(void *report_baton,
const char *path,
const char *url,
svn_revnum_t revision,
svn_boolean_t start_empty,
apr_pool_t *pool);
/** Same as the corresponding field in @c svn_ra_reporter2_t. */
svn_error_t *(*finish_report)(void *report_baton,
apr_pool_t *pool);
/** Same as the corresponding field in @c svn_ra_reporter2_t. */
svn_error_t *(*abort_report)(void *report_baton,
apr_pool_t *pool);
} svn_ra_reporter_t;
/** 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_open4().
*
* 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.
*/
typedef struct svn_ra_callbacks2_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.
*/
svn_error_t *(*open_tmp_file)(apr_file_t **fp,
void *callback_baton,
apr_pool_t *pool);
/** An authentication baton, created by the application, which is
* capable of retrieving all known types of credentials.
*/
svn_auth_baton_t *auth_baton;
/*** The following items may be set to NULL to disallow the RA layer
to perform the respective operations of the vtable functions.
Perhaps WC props are not defined or are in invalid for this
session, or perhaps the commit operation this RA session will
perform is a server-side only one that shouldn't do post-commit
processing on a working copy path. ***/
/** Fetch working copy properties.
*
*<pre> ### 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...</pre>
*/
svn_ra_get_wc_prop_func_t get_wc_prop;
/** Immediately set new values for working copy properties. */
svn_ra_set_wc_prop_func_t set_wc_prop;
/** Schedule new values for working copy properties. */
svn_ra_push_wc_prop_func_t push_wc_prop;
/** Invalidate working copy properties. */
svn_ra_invalidate_wc_props_func_t invalidate_wc_props;
/** Notification callback used for progress information.
* May be NULL if not used.
*/
svn_ra_progress_notify_func_t progress_func;
/** Notification callback baton, used with progress_func. */
void *progress_baton;
/** Cancellation function
*
* As its baton, the general callback baton is used
*
* @since New in 1.5
*/
svn_cancel_func_t cancel_func;
/** Client string customization callback function
* @since New in 1.5
*/
svn_ra_get_client_string_func_t get_client_string;
/** Working copy file content fetching function.
* @since New in 1.8.
*/
svn_ra_get_wc_contents_func_t get_wc_contents;
} svn_ra_callbacks2_t;
/** Similar to svn_ra_callbacks2_t, except that the progress
* notification function and baton is missing.
*
* @deprecated Provided for backward compatibility with the 1.2 API.
*/
( run in 0.809 second using v1.01-cache-2.11-cpan-f6376fbd888 )