summaryrefslogtreecommitdiffstats
path: root/modules/dav
diff options
context:
space:
mode:
authorGraham Leggett <minfrin@apache.org>2020-07-03 10:29:56 +0200
committerGraham Leggett <minfrin@apache.org>2020-07-03 10:29:56 +0200
commit06af945548afc700e18e60bfcf1cecbe31c62287 (patch)
tree56b4f3d8d9a50923340b371c02b5a66a63f1757f /modules/dav
parentBe defensive when calculating the digest. Make sure the offset is initialised (diff)
downloadapache2-06af945548afc700e18e60bfcf1cecbe31c62287.tar.xz
apache2-06af945548afc700e18e60bfcf1cecbe31c62287.zip
mod_dav: Allow other DAV modules to use dav_get_resource().
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1879466 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/dav')
-rw-r--r--modules/dav/main/mod_dav.c2
-rw-r--r--modules/dav/main/mod_dav.h3
2 files changed, 4 insertions, 1 deletions
diff --git a/modules/dav/main/mod_dav.c b/modules/dav/main/mod_dav.c
index b50636262b..bd6ad3c6e3 100644
--- a/modules/dav/main/mod_dav.c
+++ b/modules/dav/main/mod_dav.c
@@ -732,7 +732,7 @@ static int dav_get_overwrite(request_rec *r)
* the resource identified by the DAV:checked-in property of the resource
* identified by the Request-URI.
*/
-static dav_error *dav_get_resource(request_rec *r, int label_allowed,
+DAV_DECLARE(dav_error *) dav_get_resource(request_rec *r, int label_allowed,
int use_checked_in, dav_resource **res_p)
{
dav_dir_conf *conf;
diff --git a/modules/dav/main/mod_dav.h b/modules/dav/main/mod_dav.h
index 7b51b604f9..98b13af1bd 100644
--- a/modules/dav/main/mod_dav.h
+++ b/modules/dav/main/mod_dav.h
@@ -433,6 +433,9 @@ typedef struct dav_resource {
*/
typedef struct dav_locktoken dav_locktoken;
+DAV_DECLARE(dav_error *) dav_get_resource(request_rec *r, int label_allowed,
+ int use_checked_in, dav_resource **res_p);
+
/* --------------------------------------------------------------------
**