--- a/src/server/public/webdav.h Tue Apr 19 18:34:40 2022 +0200 +++ b/src/server/public/webdav.h Tue Apr 19 19:14:49 2022 +0200 @@ -92,6 +92,8 @@ #define WS_WEBDAV_PROPPATCH_USE_VFS 0x02 +typedef WebdavBackend*(*webdav_create_func)(Session *sn, Request *rq, pblock *pb); + enum WebdavValueType { WS_VALUE_NO_TYPE = 0, WS_VALUE_XML_NODE, @@ -383,6 +385,11 @@ }; /* + * register a webdav backend + */ +int webdav_register_backend(const char *name, webdav_create_func vfsCreate); + +/* * gets the requested depth * * in case of infinity, -1 is returned