Alien-SVN
view release on metacpan or search on metacpan
src/subversion/subversion/libsvn_ra_serf/ra_serf.h view on Meta::CPAN
const char *ns, const char *name,
const svn_string_t *val, apr_pool_t *pool);
#define svn_ra_serf__set_rev_prop svn_ra_serf__set_ver_prop
/** Property walker functions **/
typedef svn_error_t *
(*svn_ra_serf__walker_visitor_t)(void *baton,
const char *ns,
const char *name,
const svn_string_t *val,
apr_pool_t *pool);
svn_error_t *
svn_ra_serf__walk_all_props(apr_hash_t *props,
const char *name,
svn_revnum_t rev,
svn_ra_serf__walker_visitor_t walker,
void *baton,
apr_pool_t *pool);
/* Like walk_all_props(), but a 2-level hash. */
svn_error_t *
svn_ra_serf__walk_node_props(apr_hash_t *props,
svn_ra_serf__walker_visitor_t walker,
void *baton,
apr_pool_t *scratch_pool);
typedef svn_error_t *
(*svn_ra_serf__path_rev_walker_t)(void *baton,
const char *path, apr_ssize_t path_len,
const char *ns, apr_ssize_t ns_len,
const char *name, apr_ssize_t name_len,
const svn_string_t *val,
apr_pool_t *pool);
svn_error_t *
svn_ra_serf__walk_all_paths(apr_hash_t *props,
svn_revnum_t rev,
svn_ra_serf__path_rev_walker_t walker,
void *baton,
apr_pool_t *pool);
/* Map a property name, as passed over the wire, into its corresponding
Subversion-internal name. The returned name will be a static value,
or allocated within RESULT_POOL.
If the property should be ignored (eg. some DAV properties), then NULL
will be returned. */
const char *
svn_ra_serf__svnname_from_wirename(const char *ns,
const char *name,
apr_pool_t *result_pool);
/* Select the basic revision properties from the set of "all" properties.
Return these in *REVPROPS, allocated from RESULT_POOL. */
svn_error_t *
svn_ra_serf__select_revprops(apr_hash_t **revprops,
const char *name,
svn_revnum_t rev,
apr_hash_t *all_revprops,
apr_pool_t *result_pool,
apr_pool_t *scratch_pool);
/* PROPS is nested hash tables mapping NS -> NAME -> VALUE.
This function takes the NS:NAME:VALUE hashes and flattens them into a set of
names to VALUE. The names are composed of NS:NAME, with specific
rewrite from wire names (DAV) to SVN names. This mapping is managed
by the svn_ra_serf__set_baton_props() function.
FLAT_PROPS is allocated in RESULT_POOL.
### right now, we do a shallow copy from PROPS to FLAT_PROPS. therefore,
### the names and values in PROPS must be in the proper pool.
Temporary allocations are made in SCRATCH_POOL. */
svn_error_t *
svn_ra_serf__flatten_props(apr_hash_t **flat_props,
apr_hash_t *props,
apr_pool_t *result_pool,
apr_pool_t *scratch_pool);
/* Return the property value for PATH at REV revision with a NS:NAME.
* PROPS is a four-level nested hash: (svn_revnum_t => char *path =>
* char *ns => char *name => svn_string_t *). */
const svn_string_t *
svn_ra_serf__get_ver_prop_string(apr_hash_t *props,
const char *path, svn_revnum_t rev,
const char *ns, const char *name);
/* Same as svn_ra_serf__get_ver_prop_string(), but returns a C string. */
const char *
svn_ra_serf__get_ver_prop(apr_hash_t *props,
const char *path, svn_revnum_t rev,
const char *ns, const char *name);
/* Same as svn_ra_serf__get_ver_prop_string(), but for the unknown revision. */
const svn_string_t *
svn_ra_serf__get_prop_string(apr_hash_t *props,
const char *path,
const char *ns,
const char *name);
/* Same as svn_ra_serf__get_ver_prop(), but for the unknown revision. */
const char *
svn_ra_serf__get_prop(apr_hash_t *props,
const char *path,
const char *ns,
const char *name);
/* Same as svn_ra_serf__set_rev_prop(), but for the unknown revision. */
void
svn_ra_serf__set_prop(apr_hash_t *props, const char *path,
const char *ns, const char *name,
const svn_string_t *val, apr_pool_t *pool);
svn_error_t *
( run in 1.855 second using v1.01-cache-2.11-cpan-140bd7fdf52 )