Alien-SVN
view release on metacpan or search on metacpan
src/subversion/subversion/mod_dav_svn/dav_svn.h view on Meta::CPAN
auto-generated 'svn:log' property to a txn, as well as a property
that indicates the revision was made via autoversioning. */
svn_error_t *
dav_svn__attach_auto_revprops(svn_fs_txn_t *txn,
const char *fs_path,
apr_pool_t *pool);
/* Hook function of types 'checkout' and 'checkin', as defined in
mod_dav.h's versioning provider hooks table (see dav_hooks_vsn). */
dav_error *
dav_svn__checkout(dav_resource *resource,
int auto_checkout,
int is_unreserved,
int is_fork_ok,
int create_activity,
apr_array_header_t *activities,
dav_resource **working_resource);
dav_error *
dav_svn__checkin(dav_resource *resource,
int keep_checked_out,
dav_resource **version_resource);
/* Helper for reading lock-tokens out of request bodies, by looking
for cached body in R->pool's userdata.
Return a hash that maps (const char *) absolute fs paths to (const
char *) locktokens. Allocate the hash and all keys/vals in POOL.
PATH_PREFIX is the prefix we need to prepend to each relative
'lock-path' in the xml in order to create an absolute fs-path. */
dav_error *
dav_svn__build_lock_hash(apr_hash_t **locks,
request_rec *r,
const char *path_prefix,
apr_pool_t *pool);
/* Helper: push all of the lock-tokens (hash values) in LOCKS into
RESOURCE's already-open svn_fs_t. */
dav_error *
dav_svn__push_locks(dav_resource *resource,
apr_hash_t *locks,
apr_pool_t *pool);
extern const dav_hooks_vsn dav_svn__hooks_vsn;
/*** liveprops.c ***/
extern const dav_liveprop_group dav_svn__liveprop_group;
/*
LIVE PROPERTY HOOKS
These are standard hooks defined by mod_dav. We implement them to expose
various live properties on the resources under our control.
gather_propsets: appends URIs into the array; the property set URIs are
used to specify which sets of custom properties we
define/expose.
find_liveprop: given a namespace and name, return the hooks for the
provider who defines that property.
insert_all_liveprops: for a given resource, insert all of the live
properties defined on that resource. The properties
are inserted according to the WHAT parameter.
*/
void dav_svn__gather_propsets(apr_array_header_t *uris);
int
dav_svn__find_liveprop(const dav_resource *resource,
const char *ns_uri,
const char *name,
const dav_hooks_liveprop **hooks);
void
dav_svn__insert_all_liveprops(request_rec *r,
const dav_resource *resource,
dav_prop_insert what,
apr_text_header *phdr);
/*** merge.c ***/
/* Generate the HTTP response body for a successful MERGE. */
/* ### more docco */
dav_error *
dav_svn__merge_response(ap_filter_t *output,
const dav_svn_repos *repos,
svn_revnum_t new_rev,
const char *post_commit_err,
apr_xml_elem *prop_elem,
svn_boolean_t disable_merge_response,
apr_pool_t *pool);
/*** reports/ ***/
/* The list of Subversion's custom REPORTs. */
/* ### should move these report names to a public header to share with
### the client (and third parties). */
static const dav_report_elem dav_svn__reports_list[] = {
{ SVN_XML_NAMESPACE, "update-report" },
{ SVN_XML_NAMESPACE, "log-report" },
{ SVN_XML_NAMESPACE, "dated-rev-report" },
{ SVN_XML_NAMESPACE, "get-locations" },
{ SVN_XML_NAMESPACE, "get-location-segments" },
{ SVN_XML_NAMESPACE, "file-revs-report" },
{ SVN_XML_NAMESPACE, "get-locks-report" },
{ SVN_XML_NAMESPACE, "replay-report" },
{ SVN_XML_NAMESPACE, "get-deleted-rev-report" },
{ SVN_XML_NAMESPACE, SVN_DAV__MERGEINFO_REPORT },
{ SVN_XML_NAMESPACE, SVN_DAV__INHERITED_PROPS_REPORT },
{ NULL, NULL },
};
/* The various report handlers, defined in reports/, and used by version.c. */
dav_error *
dav_svn__update_report(const dav_resource *resource,
const apr_xml_doc *doc,
ap_filter_t *output);
dav_error *
dav_svn__log_report(const dav_resource *resource,
const apr_xml_doc *doc,
ap_filter_t *output);
dav_error *
dav_svn__dated_rev_report(const dav_resource *resource,
( run in 0.799 second using v1.01-cache-2.11-cpan-71847e10f99 )