/usr/include/subversion-1/mod_dav_svn.h is in libsvn-dev 1.6.17dfsg-3ubuntu3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 | /**
* @copyright
* ====================================================================
* Copyright (c) 2000-2007 CollabNet. All rights reserved.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
* are also available at http://subversion.tigris.org/license-1.html.
* If newer versions of this license are posted there, you may use a
* newer version instead, at your option.
*
* This software consists of voluntary contributions made by many
* individuals. For exact contribution history, see the revision
* history and logs, available at http://subversion.tigris.org/.
* ====================================================================
* @endcopyright
*
* @file mod_dav_svn.h
* @brief Subversion's backend for Apache's mod_dav module
*/
#ifndef MOD_DAV_SVN_H
#define MOD_DAV_SVN_H
#include <httpd.h>
#include <mod_dav.h>
#include <apr_optional.h>
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
/* Given an apache request R, a URI, and a ROOT_PATH to the svn
location block, process URI and return many things, allocated in
r->pool:
* CLEANED_URI: The uri with duplicate and trailing slashes removed.
* TRAILING_SLASH: Whether the uri had a trailing slash on it.
Three special substrings of the uri are returned for convenience:
* REPOS_NAME: The single path component that is the directory
which contains the repository.
* RELATIVE_PATH: The remaining imaginary path components.
* REPOS_PATH: The actual path within the repository filesystem, or
NULL if no part of the uri refers to a path in
the repository (e.g. "!svn/vcc/default" or
"!svn/bln/25").
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:
* CLEANED_URI: /svn/repos/proj1/!svn/blah/13/A/B/alpha
* REPOS_NAME: proj1
* RELATIVE_PATH: /!svn/blah/13/A/B/alpha
* REPOS_PATH: A/B/alpha
* TRAILING_SLASH: FALSE
*/
AP_MODULE_DECLARE(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_name,
const char **relative_path,
const char **repos_path);
APR_DECLARE_OPTIONAL_FN(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_name,
const char **relative_path,
const char **repos_path));
/* Given an apache request R and a ROOT_PATH to the svn location
block sets *REPOS_PATH to the path of the repository on disk.
*/
AP_MODULE_DECLARE(dav_error *) dav_svn_get_repos_path(request_rec *r,
const char *root_path,
const char **repos_path);
APR_DECLARE_OPTIONAL_FN(dav_error *, dav_svn_get_repos_path,
(request_rec *r,
const char *root_path,
const char **repos_path));
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* MOD_DAV_SVN_H */
|