FreeBSD/contrib/subversion/subversion/libsvn_subr/object_pool.c
/* Actual implementation of svn_object_pool__lookup.
 *
 * Requires external serialization on OBJECT_POOL.
 */
Actual implementation of svn_object_pool__lookup.
Requires external serialization on OBJECT_POOL.
Actual implementation of svn_object_pool__lookup . Requires external serialization on OBJECT_POOL .
static svn_error_t *
lookup(void **object,
       svn_object_pool__t *object_pool,
       svn_membuf_t *key,
       void *baton,
       apr_pool_t *result_pool)
{
  object_ref_t *object_ref
    = apr_hash_get(object_pool->objects, key->data, key->size);
  if (object_ref)
    {
      *object = object_pool->getter(object_ref->wrapper, baton, result_pool);
      add_object_ref(object_ref, result_pool);
    }
  else
    {
      *object = NULL;
    }
  return SVN_NO_ERROR;
}
static svn_error_t * lookup ( void * * object , svn_object_pool__t * object_pool , svn_membuf_t * key , void * baton , apr_pool_t * result_pool ) { object_ref_t * object_ref = apr_hash_get ( object_pool -> objects , key -> data , key -> size ) ; if ( object_ref ) { * object = object_pool -> getter ( object_ref -> wrapper , baton , result_pool ) ; add_object_ref ( object_ref , result_pool ) ; } else { * object = NULL ; } return SVN_NO_ERROR ; }
Actual implementation of svn_object_pool__lookup.
Actual implementation of svn_object_pool__lookup .