src/server/public/webdav.h

branch
webdav
changeset 244
e59abb210584
parent 241
4adad7faf452
child 245
a193c42fc809
--- a/src/server/public/webdav.h	Sun Jan 26 11:50:35 2020 +0100
+++ b/src/server/public/webdav.h	Sat Feb 01 18:44:31 2020 +0100
@@ -320,6 +320,40 @@
             WSBool);
     
     /*
+     * int opt_mkcol(
+     *     Session *sn,
+     *     Request *rq,
+     *     const char *path,
+     *     WSBool *out_created
+     * 
+     * Optional mkcol callback that is called before vfs_mkdir. If the function
+     * sets out_created to TRUE, vfs_mkdir will not be executed.
+     */
+    int (*opt_mkcol)(
+            Session *,
+            Request *,
+            const char *,
+            WSBool *);
+    
+    /*
+     * int opt_delete(
+     *     Session *sn,
+     *     Request *rq,
+     *     const char *path,
+     *     WSBool *out_deleted
+     * 
+     * Optional delete callback that is called once before any VFS deletions.
+     * When the callback sets out_deleted to TRUE, no VFS unlink operations
+     * will be done.
+     * 
+     */
+    int (*opt_delete)(
+            Session *,
+            Request *,
+            const char *,
+            WSBool *);
+    
+    /*
      * See the WS_WEBDAV_* macros for informations about the settings
      */
     uint32_t settings;

mercurial