summaryrefslogtreecommitdiffstats
path: root/modules/dav/main
diff options
context:
space:
mode:
authorGraham Leggett <minfrin@apache.org>2016-06-12 02:58:09 +0200
committerGraham Leggett <minfrin@apache.org>2016-06-12 02:58:09 +0200
commit5405da141a824ee3e629464740662f8e5cc3a213 (patch)
treecc0a20fcee420ab93565bd90e7eec4796cd87730 /modules/dav/main
parentStrip proxy:fcgi:// just like proxy:balancer (diff)
downloadapache2-5405da141a824ee3e629464740662f8e5cc3a213.tar.xz
apache2-5405da141a824ee3e629464740662f8e5cc3a213.zip
mod_dav: Add dav_get_provider_name() function to obtain the name
of the provider from mod_dav. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1747946 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/dav/main')
-rw-r--r--modules/dav/main/mod_dav.c6
-rw-r--r--modules/dav/main/mod_dav.h1
2 files changed, 7 insertions, 0 deletions
diff --git a/modules/dav/main/mod_dav.c b/modules/dav/main/mod_dav.c
index d35c75ae0b..1459acc1b6 100644
--- a/modules/dav/main/mod_dav.c
+++ b/modules/dav/main/mod_dav.c
@@ -201,6 +201,12 @@ static void *dav_merge_dir_config(apr_pool_t *p, void *base, void *overrides)
return newconf;
}
+DAV_DECLARE(const char *) dav_get_provider_name(request_rec *r)
+{
+ dav_dir_conf *conf = ap_get_module_config(r->per_dir_config, &dav_module);
+ return conf ? conf->provider_name : NULL;
+}
+
static const dav_provider *dav_get_provider(request_rec *r)
{
dav_dir_conf *conf;
diff --git a/modules/dav/main/mod_dav.h b/modules/dav/main/mod_dav.h
index 7aea8a3489..6104ae6997 100644
--- a/modules/dav/main/mod_dav.h
+++ b/modules/dav/main/mod_dav.h
@@ -667,6 +667,7 @@ DAV_DECLARE(const dav_hooks_search *) dav_get_search_hooks(request_rec *r);
DAV_DECLARE(void) dav_register_provider(apr_pool_t *p, const char *name,
const dav_provider *hooks);
DAV_DECLARE(const dav_provider *) dav_lookup_provider(const char *name);
+DAV_DECLARE(const char *) dav_get_provider_name(request_rec *r);
/* ### deprecated */