diff -r 1a29b1d8d9d8 -r e59abb210584 src/server/webdav/webdav.h --- a/src/server/webdav/webdav.h Sun Jan 26 11:50:35 2020 +0100 +++ b/src/server/webdav/webdav.h Sat Feb 01 18:44:31 2020 +0100 @@ -82,6 +82,25 @@ int webdav_acl(pblock *pb, Session *sn, Request *rq); int webdav_search (pblock *pb, Session *sn, Request *rq); +/* + * Initialize a WebDAV VFS operation + * + * sn: WS Session + * rq: WS Request + * out_reqbuf: func returns a pointer to the request body or NULL + * out_vfs: func returns a pointer to the newly created VFSContext + * out_path: func returns a pointer to the path string + * + * return: on success REQ_PROCEED + * on error REQ_ABORTED + */ +int webdav_init_vfs_op( + Session *sn, + Request *rq, + UcxBuffer **out_reqbuf, + VFSContext **out_vfs, + char **out_path); + int default_propfind_init( WebdavPropfindRequest *rq, const char* path,