subversion/libsvn_repos/repos.c
/* Allocate and return a new svn_repos_t * object, initializing the
   directory pathname members based on PATH, and initializing the
   REPOSITORY_CAPABILITIES member.
   The members FS, FORMAT, and FS_TYPE are *not* initialized (they are null),
   and it is the caller's responsibility to fill them in if needed.  */
Allocate and return a new svn_repos_t * object, initializing the
directory pathname members based on PATH, and initializing the
REPOSITORY_CAPABILITIES member.
The members FS, FORMAT, and FS_TYPE are *not* initialized (they are null),
and it is the caller's responsibility to fill them in if needed.
Allocate and return a new svn_repos_t * object initializing the directory pathname members based on PATH and initializing the REPOSITORY_CAPABILITIES member . The members FS FORMAT and FS_TYPE are * not * initialized ( they are null ) and it is the caller ' s responsibility to fill them in if needed .
static svn_repos_t *
create_svn_repos_t(const char *path, apr_pool_t *pool)
{
  svn_repos_t *repos = apr_pcalloc(pool, sizeof(*repos));
  repos->path = apr_pstrdup(pool, path);
  repos->db_path = svn_dirent_join(path, SVN_REPOS__DB_DIR, pool);
  repos->conf_path = svn_dirent_join(path, SVN_REPOS__CONF_DIR, pool);
  repos->hook_path = svn_dirent_join(path, SVN_REPOS__HOOK_DIR, pool);
  repos->lock_path = svn_dirent_join(path, SVN_REPOS__LOCK_DIR, pool);
  repos->hooks_env_path = NULL;
  repos->repository_capabilities = apr_hash_make(pool);
  repos->pool = pool;
  return repos;
}
static svn_repos_t * create_svn_repos_t ( const char * path , apr_pool_t * pool ) { svn_repos_t * repos = apr_pcalloc ( pool , sizeof ( * repos ) ) ; repos -> path = apr_pstrdup ( pool , path ) ; repos -> db_path = svn_dirent_join ( path , SVN_REPOS__DB_DIR , pool ) ; repos -> conf_path = svn_dirent_join ( path , SVN_REPOS__CONF_DIR , pool ) ; repos -> hook_path = svn_dirent_join ( path , SVN_REPOS__HOOK_DIR , pool ) ; repos -> lock_path = svn_dirent_join ( path , SVN_REPOS__LOCK_DIR , pool ) ; repos -> hooks_env_path = NULL ; repos -> repository_capabilities = apr_hash_make ( pool ) ; repos -> pool = pool ; return repos ; }
Allocate and return a new svn_repos_t * object, initializing the
directory pathname members based on PATH, and initializing the
REPOSITORY_CAPABILITIES member.
Allocate and return a new svn_repos_t * object initializing the directory pathname members based on PATH and initializing the REPOSITORY_CAPABILITIES member .