FreeBSD/contrib/subversion/subversion/libsvn_fs_x/tree.c
/* Set *VALUE_P to the value of the property named PROPNAME of PATH in
   ROOT.  If the node has no property by that name, set *VALUE_P to
   zero.  Allocate the result in POOL. */
Set *VALUE_P to the value of the property named PROPNAME of PATH in
ROOT.  If the node has no property by that name, set *VALUE_P to
zero.  Allocate the result in POOL.
Set * VALUE_P to the value of the property named PROPNAME of PATH in ROOT . If the node has no property by that name set * VALUE_P to zero . Allocate the result in POOL .
static svn_error_t *
x_node_prop(svn_string_t **value_p,
            svn_fs_root_t *root,
            const char *path,
            const char *propname,
            apr_pool_t *pool)
{
  dag_node_t *node;
  apr_hash_t *proplist;
  apr_pool_t *scratch_pool = svn_pool_create(pool);
  SVN_ERR(get_dag(&node, root, path,  pool));
  SVN_ERR(svn_fs_x__dag_get_proplist(&proplist, node, pool, scratch_pool));
  *value_p = NULL;
  if (proplist)
    *value_p = svn_hash_gets(proplist, propname);
  svn_pool_destroy(scratch_pool);
  return SVN_NO_ERROR;
}
static svn_error_t * x_node_prop ( svn_string_t * * value_p , svn_fs_root_t * root , const char * path , const char * propname , apr_pool_t * pool ) { dag_node_t * node ; apr_hash_t * proplist ; apr_pool_t * scratch_pool = svn_pool_create ( pool ) ; SVN_ERR ( get_dag ( & node , root , path , pool ) ) ; SVN_ERR ( svn_fs_x__dag_get_proplist ( & proplist , node , pool , scratch_pool ) ) ; * value_p = NULL ; if ( proplist ) * value_p = svn_hash_gets ( proplist , propname ) ; svn_pool_destroy ( scratch_pool ) ; return SVN_NO_ERROR ; }
Set *VALUE_P to the value of the property named PROPNAME of PATH in
ROOT.
Set * VALUE_P to the value of the property named PROPNAME of PATH in ROOT .