Sun, 26 Jan 2020 11:50:35 +0100
add proppatch handler to default backend
src/server/webdav/webdav.c | file | annotate | diff | comparison | revisions | |
src/server/webdav/webdav.h | file | annotate | diff | comparison | revisions |
--- 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 ------------------------------ */
--- 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 }