src/server/public/webdav.h

branch
webdav
changeset 366
47bc686fafe4
parent 331
ab26980faad6
child 376
61d481d3c2e4
--- a/src/server/public/webdav.h	Sun May 15 08:56:00 2022 +0200
+++ b/src/server/public/webdav.h	Sun Aug 07 13:46:43 2022 +0200
@@ -92,7 +92,8 @@
 #define WS_WEBDAV_PROPPATCH_USE_VFS   0x02
 
 
-typedef WebdavBackend*(*webdav_create_func)(Session *sn, Request *rq, pblock *pb);
+typedef void*(*webdav_init_func)(ServerConfiguration *cfg, pool_handle_t *pool, WSConfigNode *config);
+typedef WebdavBackend*(*webdav_create_func)(Session *sn, Request *rq, pblock *pb, void *initData);
 
 enum WebdavValueType {
     WS_VALUE_NO_TYPE = 0,
@@ -392,9 +393,9 @@
 /*
  * register a webdav backend
  */
-int webdav_register_backend(const char *name, webdav_create_func vfsCreate);
+int webdav_register_backend(const char *name, webdav_init_func webdavInit, webdav_create_func webdavCreate);
 
-WebdavBackend* webdav_create(Session *sn, Request *rq, const char *dav_class, pblock *pb);
+WebdavBackend* webdav_create(Session *sn, Request *rq, const char *dav_class, pblock *pb, void *initData);
 
 /*
  * gets the requested depth

mercurial