src/server/public/nsapi.h

branch
webdav
changeset 269
3dfbd0b91950
parent 260
4779a6fb4fbe
child 270
4cfaa02055cd
equal deleted inserted replaced
268:65ac1342ba1f 269:3dfbd0b91950
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 */

mercurial