src/server/public/nsapi.h

branch
webdav
changeset 269
3dfbd0b91950
parent 260
4779a6fb4fbe
child 270
4cfaa02055cd
--- a/src/server/public/nsapi.h	Thu Jan 20 16:04:58 2022 +0100
+++ b/src/server/public/nsapi.h	Sat Jan 22 11:06:11 2022 +0100
@@ -768,21 +768,23 @@
 typedef struct _http_listener HttpListener;
 
 typedef struct ResourceType ResourceType;
-typedef struct ResourceData    ResourceData;
+typedef struct ResourceData ResourceData;
 
 struct ResourceType {
-    ResourceType * (*init)(pool_handle_t *, pblock *);
-    void           (*destroy)(ResourceType *);
+    void * (*init)(pool_handle_t *, pblock *);
+    void   (*destroy)(void *);
     
-    void *         (*createresource)(ResourceType *, pblock *);
-    void           (*freeresource)(ResourceType *, void *);
+    void * (*createresource)(void *);
+    void   (*freeresource)(void *, void *);
+    int    (*prepare)(void *, void *);
+    int    (*finish)(void *, void *);
 };
 
 struct ResourceData {
+    void *resourcepool;
     void *data;
 };
 
-
 //////
 /*
  * VSInitFunc, VSDestroyFunc, VSDirectiveInitFunc and VSDirectiveDestroyFunc

mercurial