diff -r 65ac1342ba1f -r 3dfbd0b91950 src/server/public/nsapi.h --- 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