# HG changeset patch # User Olaf Wintermann # Date 1660156369 -7200 # Node ID 69dbcc7e7f9394eeb8731a85fa0e7cfb2984b323 # Parent 1592224f6059200c1eda74d35e5b833ce04048ad implement named dav repositories diff -r 1592224f6059 -r 69dbcc7e7f93 src/server/daemon/config.c --- a/src/server/daemon/config.c Tue Aug 09 19:01:54 2022 +0200 +++ b/src/server/daemon/config.c Wed Aug 10 20:32:49 2022 +0200 @@ -150,6 +150,7 @@ serverconfig->host_vs = ucx_map_new_a(&allocator, 16); serverconfig->authdbs = ucx_map_new_a(&allocator, 16); serverconfig->resources = ucx_map_new_a(&allocator, 16); + serverconfig->dav = ucx_map_new_a(&allocator, 16); @@ -786,6 +787,15 @@ } } + if(!ret) { + if(name) { + ucx_map_cstr_put(cfg->dav, name, repository); + } else { + log_ereport(LOG_FAILURE, "TODO: location based dav repositories not implemented"); + ret = 1; + } + } + return ret; } diff -r 1592224f6059 -r 69dbcc7e7f93 src/server/daemon/config.h --- a/src/server/daemon/config.h Tue Aug 09 19:01:54 2022 +0200 +++ b/src/server/daemon/config.h Wed Aug 10 20:32:49 2022 +0200 @@ -72,6 +72,7 @@ UcxMap *authdbs; MimeMap *mimetypes; UcxMap *resources; + UcxMap *dav; sstr_t tmp; sstr_t user; uint32_t ref; // reference counter