src/server/webdav/operation.h

branch
webdav
changeset 246
155bdef7fe7e
parent 245
a193c42fc809
child 247
1df803e06076
--- a/src/server/webdav/operation.h	Sun Feb 02 17:42:05 2020 +0100
+++ b/src/server/webdav/operation.h	Sun May 31 13:08:42 2020 +0200
@@ -78,6 +78,14 @@
 typedef int(*vfs_op_func)(WebdavVFSRequest *, WSBool *);
 typedef int(*vfs_op_finish_func)(WebdavVFSRequest *, WSBool);
 
+typedef int(*vfs_op_child_func)(
+        VFSContext *,
+        const char *,                     /* href */
+        const char *,                     /* path */
+        VFSDir *,                         /* parent dir */
+        struct stat *,                    /* child stat */
+        void *);                          /* user data */
+
 /*
  * counts the number of backends
  */
@@ -132,6 +140,14 @@
         WebdavBackend *dav,
         WSBool precondition);
 
+int webdav_op_iterate_children(
+        VFSContext *vfs,
+        int depth,
+        const char *href,
+        const char *path,
+        vfs_op_child_func func,
+        void *userdata);
+
 int webdav_vfs_stat(WebdavVFSOperation *op);
 
 int webdav_vfs_op_do(WebdavVFSOperation *op, WebdavVFSOpType type);

mercurial