766 ////// new |
766 ////// new |
767 |
767 |
768 typedef struct _http_listener HttpListener; |
768 typedef struct _http_listener HttpListener; |
769 |
769 |
770 typedef struct ResourceType ResourceType; |
770 typedef struct ResourceType ResourceType; |
771 typedef struct ResourceData ResourceData; |
771 typedef struct ResourceData ResourceData; |
772 |
772 |
773 struct ResourceType { |
773 struct ResourceType { |
774 ResourceType * (*init)(pool_handle_t *, pblock *); |
774 void * (*init)(pool_handle_t *, pblock *); |
775 void (*destroy)(ResourceType *); |
775 void (*destroy)(void *); |
776 |
776 |
777 void * (*createresource)(ResourceType *, pblock *); |
777 void * (*createresource)(void *); |
778 void (*freeresource)(ResourceType *, void *); |
778 void (*freeresource)(void *, void *); |
|
779 int (*prepare)(void *, void *); |
|
780 int (*finish)(void *, void *); |
779 }; |
781 }; |
780 |
782 |
781 struct ResourceData { |
783 struct ResourceData { |
|
784 void *resourcepool; |
782 void *data; |
785 void *data; |
783 }; |
786 }; |
784 |
|
785 |
787 |
786 ////// |
788 ////// |
787 /* |
789 /* |
788 * VSInitFunc, VSDestroyFunc, VSDirectiveInitFunc and VSDirectiveDestroyFunc |
790 * VSInitFunc, VSDestroyFunc, VSDirectiveInitFunc and VSDirectiveDestroyFunc |
789 */ |
791 */ |