| 145 | }; |
| 146 | |
| 147 | xmlParserCtxtPtr S3InterfaceService::getXMLContext(Response &response) { |
| 148 | xmlParserCtxtPtr xmlptr = |
| 149 | xmlCreatePushParserCtxt(NULL, NULL, (const char *)(response.getRawData().data()), |
| 150 | response.getRawData().size(), "getXMLContext.xml"); |
| 151 | if (xmlptr != NULL) { |
| 152 | xmlParseChunk(xmlptr, "", 0, 1); |
| 153 | } else { |
| 154 | S3ERROR("Failed to create XML parser context"); |
| 155 | } |
| 156 | return xmlptr; |
| 157 | } |
| 158 | |
| 159 | // require curl 7.17 higher |
| 160 | // http://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketGET.html |
nothing calls this directly
no test coverage detected