From 06af945548afc700e18e60bfcf1cecbe31c62287 Mon Sep 17 00:00:00 2001 From: Graham Leggett Date: Fri, 3 Jul 2020 08:29:56 +0000 Subject: 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 --- modules/dav/main/mod_dav.c | 2 +- modules/dav/main/mod_dav.h | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'modules/dav') 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); + /* -------------------------------------------------------------------- ** -- cgit v1.2.3