# HG changeset patch
# User Olaf Wintermann <olaf.wintermann@gmail.com>
# Date 1580035835 -3600
# Node ID 1a29b1d8d9d89d959092d21a325bb5111ef0cd6f
# Parent  c337a7ac82a831b8785bd7fc6270b8aa7a6f9555
add proppatch handler to default backend

diff -r c337a7ac82a8 -r 1a29b1d8d9d8 src/server/webdav/webdav.c
--- a/src/server/webdav/webdav.c	Sun Jan 26 10:13:11 2020 +0100
+++ b/src/server/webdav/webdav.c	Sun Jan 26 11:50:35 2020 +0100
@@ -64,8 +64,8 @@
     default_backend.propfind_init = default_propfind_init;
     default_backend.propfind_do = default_propfind_do;
     default_backend.propfind_finish = default_propfind_finish;
-    default_backend.proppatch_do = NULL;
-    default_backend.proppatch_finish = NULL;
+    default_backend.proppatch_do = default_proppatch_do;
+    default_backend.proppatch_finish = default_proppatch_finish;
     default_backend.settings = WS_WEBDAV_PROPFIND_USE_VFS;
 }
 
@@ -530,6 +530,25 @@
     return 0;
 }
 
+int default_proppatch_do(
+            WebdavProppatchRequest *request,
+            WebdavResource *response,
+            VFSFile *file,
+            WebdavPList **setInOut,
+            WebdavPList **removeInOut)
+{
+    return 0;
+}
+
+int default_proppatch_finish(
+            WebdavProppatchRequest *request,
+            WebdavResource *response,
+            VFSFile *file,
+            WSBool commit)
+{
+    return 0;
+}
+
 
 /* ------------------------------ public API ------------------------------ */
 
diff -r c337a7ac82a8 -r 1a29b1d8d9d8 src/server/webdav/webdav.h
--- a/src/server/webdav/webdav.h	Sun Jan 26 10:13:11 2020 +0100
+++ b/src/server/webdav/webdav.h	Sun Jan 26 11:50:35 2020 +0100
@@ -93,6 +93,17 @@
         WebdavResource *resource,
         struct stat *s);
 int default_propfind_finish(WebdavPropfindRequest *rq);
+int default_proppatch_do(
+            WebdavProppatchRequest *request,
+            WebdavResource *response,
+            VFSFile *file,
+            WebdavPList **setInOut,
+            WebdavPList **removeInOut);
+int default_proppatch_finish(
+            WebdavProppatchRequest *request,
+            WebdavResource *response,
+            VFSFile *file,
+            WSBool commit);
 
 #ifdef	__cplusplus
 }