Subversion
|
Subversion's backend for Apache's mod_dav module. More...
#include <httpd.h>
#include <mod_dav.h>
Go to the source code of this file.
Functions | |
dav_error * | dav_svn_split_uri2 (request_rec *r, const char *uri_to_split, const char *root_path, const char **cleaned_uri, int *trailing_slash, const char **repos_basename, const char **relative_path, const char **repos_path, apr_pool_t *pool) |
Given an apache request r, a uri, and a root_path to the svn location block, process uri and return many things, allocated in pool: More... | |
dav_error * | dav_svn_split_uri (request_rec *r, const char *uri, const char *root_path, const char **cleaned_uri, int *trailing_slash, const char **repos_basename, const char **relative_path, const char **repos_path) |
Same as dav_svn_split_uri2() but allocates the result in r->pool. | |
dav_error * | dav_svn_get_repos_path2 (request_rec *r, const char *root_path, const char **repos_path, apr_pool_t *pool) |
Given an apache request r and a root_path to the svn location block, set *repos_path to the path of the repository on disk. More... | |
dav_error * | dav_svn_get_repos_path (request_rec *r, const char *root_path, const char **repos_path) |
Same as dav_svn_get_repos_path2() but allocates the result inr->pool. | |
Subversion's backend for Apache's mod_dav module.
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations
Definition in file mod_dav_svn.h.
dav_error* dav_svn_get_repos_path2 | ( | request_rec * | r, |
const char * | root_path, | ||
const char ** | repos_path, | ||
apr_pool_t * | pool | ||
) |
Given an apache request r and a root_path to the svn location block, set *repos_path to the path of the repository on disk.
Perform all allocations in pool.
NOTE: The returned dav_error will be also allocated in pool, not in r->pool.
dav_error* dav_svn_split_uri2 | ( | request_rec * | r, |
const char * | uri_to_split, | ||
const char * | root_path, | ||
const char ** | cleaned_uri, | ||
int * | trailing_slash, | ||
const char ** | repos_basename, | ||
const char ** | relative_path, | ||
const char ** | repos_path, | ||
apr_pool_t * | pool | ||
) |
Given an apache request r, a uri, and a root_path to the svn location block, process uri and return many things, allocated in pool:
Three special substrings of the uri are returned for convenience:
For example, consider the uri
/svn/repos/proj1/!svn/blah/13//A/B/alpha
In the SVNPath case, this function would receive a root_path of '/svn/repos/proj1', and in the SVNParentPath case would receive a root_path of '/svn/repos'. But either way, we would get back:
NOTE: The returned dav_error will be also allocated in pool, not in r->pool.