FreeBSD/contrib/subversion/subversion/libsvn_fs_x/tree.c
/* Set *CONTENTS to a readable stream that will return the contents of
   PATH under ROOT.  The stream is allocated in POOL. */
Set *CONTENTS to a readable stream that will return the contents of
PATH under ROOT.  The stream is allocated in POOL.
Set * CONTENTS to a readable stream that will return the contents of PATH under ROOT . The stream is allocated in POOL .
static svn_error_t *
x_file_contents(svn_stream_t **contents,
                svn_fs_root_t *root,
                const char *path,
                apr_pool_t *pool)
{
  dag_node_t *node;
  svn_stream_t *file_stream;
  SVN_ERR(get_dag(&node, root, path, pool));
  SVN_ERR(svn_fs_x__dag_get_contents(&file_stream, node, pool));
  *contents = file_stream;
  return SVN_NO_ERROR;
}
static svn_error_t * x_file_contents ( svn_stream_t * * contents , svn_fs_root_t * root , const char * path , apr_pool_t * pool ) { dag_node_t * node ; svn_stream_t * file_stream ; SVN_ERR ( get_dag ( & node , root , path , pool ) ) ; SVN_ERR ( svn_fs_x__dag_get_contents ( & file_stream , node , pool ) ) ; * contents = file_stream ; return SVN_NO_ERROR ; }
Set *CONTENTS to a readable stream that will return the contents of
PATH under ROOT.
Set * CONTENTS to a readable stream that will return the contents of PATH under ROOT .
/* First create a dag_node_t from the root/path pair. */ /* Then create a readable stream from the dag_node_t. */