52 if(!xcinit) { |
52 if(!xcinit) { |
53 /* TODO: create webdav module init function */ |
53 /* TODO: create webdav module init function */ |
54 XMLPlatformUtils::Initialize(); |
54 XMLPlatformUtils::Initialize(); |
55 xcinit = 1; |
55 xcinit = 1; |
56 } |
56 } |
57 PropfindRequest *davrq = (PropfindRequest*)pool_malloc( |
57 PropfindRequest *davrq = (PropfindRequest*)pool_calloc( |
58 sn->pool, |
58 sn->pool, |
|
59 1, |
59 sizeof(PropfindRequest)); |
60 sizeof(PropfindRequest)); |
60 davrq->allprop = 0; |
61 davrq->allprop = 0; |
61 davrq->propname = 0; |
62 davrq->propname = 0; |
62 davrq->prop = 0; |
63 davrq->prop = 0; |
63 davrq->properties = NULL; |
64 davrq->properties = NULL; |
|
65 davrq->forbiddenProps = NULL; |
|
66 davrq->notFoundProps = NULL; |
64 // create xml parser |
67 // create xml parser |
65 SAX2XMLReader* parser = XMLReaderFactory::createXMLReader(); |
68 SAX2XMLReader* parser = XMLReaderFactory::createXMLReader(); |
66 parser->setFeature(XMLUni::fgSAX2CoreNameSpaces, true); |
69 parser->setFeature(XMLUni::fgSAX2CoreNameSpaces, true); |
67 |
70 |
68 PropfindHandler handler(davrq, sn->pool); |
71 PropfindHandler handler(davrq, sn->pool); |
100 if(!xcinit) { |
110 if(!xcinit) { |
101 /* TODO: create webdav module init function */ |
111 /* TODO: create webdav module init function */ |
102 XMLPlatformUtils::Initialize(); |
112 XMLPlatformUtils::Initialize(); |
103 xcinit = 1; |
113 xcinit = 1; |
104 } |
114 } |
105 ProppatchRequest *davrq = (ProppatchRequest*)pool_malloc( |
115 ProppatchRequest *davrq = (ProppatchRequest*)pool_calloc( |
106 sn->pool, |
116 sn->pool, |
|
117 1, |
107 sizeof(PropfindRequest)); |
118 sizeof(PropfindRequest)); |
108 davrq->nsmap = xmlnsmap_create(); |
119 davrq->nsmap = xmlnsmap_create(sn->pool); |
109 |
120 |
110 |
121 |
111 |
122 |
112 // create xml parser |
123 // create xml parser |
113 SAX2XMLReader* parser = XMLReaderFactory::createXMLReader(); |
124 SAX2XMLReader* parser = XMLReaderFactory::createXMLReader(); |