Alien-SVN
view release on metacpan or search on metacpan
src/subversion/subversion/libsvn_ra_serf/ra_serf.h view on Meta::CPAN
svn_revnum_t revision,
svn_mergeinfo_inheritance_t inherit,
svn_boolean_t include_descendants,
apr_pool_t *pool);
/* Exchange capabilities with the server, by sending an OPTIONS
* request announcing the client's capabilities, and by filling
* SERF_SESS->capabilities with the server's capabilities as read from
* the response headers. Use POOL only for temporary allocation.
*
* If the CORRECTED_URL is non-NULL, allow the OPTIONS response to
* report a server-dictated redirect or relocation (HTTP 301 or 302
* error codes), setting *CORRECTED_URL to the value of the corrected
* repository URL. Otherwise, such responses from the server will
* generate an error. (In either case, no capabilities are exchanged
* if there is, in fact, such a response from the server.)
*/
svn_error_t *
svn_ra_serf__exchange_capabilities(svn_ra_serf__session_t *serf_sess,
const char **corrected_url,
apr_pool_t *pool);
/* Implements svn_ra__vtable_t.has_capability(). */
svn_error_t *
svn_ra_serf__has_capability(svn_ra_session_t *ra_session,
svn_boolean_t *has,
const char *capability,
apr_pool_t *pool);
/* Implements svn_ra__vtable_t.get_deleted_rev(). */
svn_error_t *
svn_ra_serf__get_deleted_rev(svn_ra_session_t *session,
const char *path,
svn_revnum_t peg_revision,
svn_revnum_t end_revision,
svn_revnum_t *revision_deleted,
apr_pool_t *pool);
/* Implements the get_inherited_props RA layer function. */
svn_error_t * svn_ra_serf__get_inherited_props(svn_ra_session_t *session,
apr_array_header_t **iprops,
const char *path,
svn_revnum_t revision,
apr_pool_t *result_pool,
apr_pool_t *scratch_pool);
/* Implements svn_ra__vtable_t.get_repos_root(). */
svn_error_t *
svn_ra_serf__get_repos_root(svn_ra_session_t *ra_session,
const char **url,
apr_pool_t *pool);
/* Implements svn_ra__vtable_t.register_editor_shim_callbacks(). */
svn_error_t *
svn_ra_serf__register_editor_shim_callbacks(svn_ra_session_t *session,
svn_delta_shim_callbacks_t *callbacks);
/*** Authentication handler declarations ***/
/**
* Callback function that loads the credentials for Basic and Digest
* authentications, both for server and proxy authentication.
*/
apr_status_t
svn_ra_serf__credentials_callback(char **username, char **password,
serf_request_t *request, void *baton,
int code, const char *authn_type,
const char *realm,
apr_pool_t *pool);
/*** General utility functions ***/
/**
* Convert an HTTP STATUS_CODE resulting from a WebDAV request against
* PATH to the relevant error code. Use the response-supplied LOCATION
* where it necessary.
*/
svn_error_t *
svn_ra_serf__error_on_status(serf_status_line sline,
const char *path,
const char *location);
/* ###? */
svn_error_t *
svn_ra_serf__copy_into_spillbuf(svn_spillbuf_t **spillbuf,
serf_bucket_t *bkt,
apr_pool_t *result_pool,
apr_pool_t *scratch_pool);
/* ###? */
serf_bucket_t *
svn_ra_serf__create_sb_bucket(svn_spillbuf_t *spillbuf,
serf_bucket_alloc_t *allocator,
apr_pool_t *result_pool,
apr_pool_t *scratch_pool);
/** Wrap STATUS from an serf function. If STATUS is not serf error code,
* this is equivalent to svn_error_wrap_apr().
*/
svn_error_t *
svn_ra_serf__wrap_err(apr_status_t status,
const char *fmt,
...);
#if defined(SVN_DEBUG)
/* Wrapper macros to collect file and line information */
#define svn_ra_serf__wrap_err \
(svn_error__locate(__FILE__,__LINE__), (svn_ra_serf__wrap_err))
#endif
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* SVN_LIBSVN_RA_SERF_RA_SERF_H */
( run in 0.351 second using v1.01-cache-2.11-cpan-39bf76dae61 )