diff -r f9e40f5c6daf -r 04c60a353331 libidav/config.c --- a/libidav/config.c Sun Jul 21 23:19:40 2024 +0200 +++ b/libidav/config.c Sun Jul 21 23:27:52 2024 +0200 @@ -818,3 +818,12 @@ } return 0; } + +int dav_config_register_namespaces(DavConfig *config, DavContext *ctx) { + DavCfgNamespace *ns = config->namespaces; + while(ns) { + dav_add_namespace(ctx, ns->prefix.ptr, ns->uri.ptr); + ns = ns->next; + } + return 0; +}