| 166 |
166 |
| 167 if(webdav_init_xattr_backend()) { |
167 if(webdav_init_xattr_backend()) { |
| 168 return REQ_ABORTED; |
168 return REQ_ABORTED; |
| 169 } |
169 } |
| 170 |
170 |
| 171 cxMapPut(method_handler_map, "OPTIONS", webdav_options); |
171 cxMapPut(method_handler_map, "OPTIONS", (void*)webdav_options); |
| 172 cxMapPut(method_handler_map, "PROPFIND", webdav_propfind); |
172 cxMapPut(method_handler_map, "PROPFIND", (void*)webdav_propfind); |
| 173 cxMapPut(method_handler_map, "PROPPATCH", webdav_proppatch); |
173 cxMapPut(method_handler_map, "PROPPATCH", (void*)webdav_proppatch); |
| 174 cxMapPut(method_handler_map, "MKCOL", webdav_mkcol); |
174 cxMapPut(method_handler_map, "MKCOL", (void*)webdav_mkcol); |
| 175 cxMapPut(method_handler_map, "POST", webdav_post); |
175 cxMapPut(method_handler_map, "POST", (void*)webdav_post); |
| 176 cxMapPut(method_handler_map, "DELETE", webdav_delete); |
176 cxMapPut(method_handler_map, "DELETE", (void*)webdav_delete); |
| 177 cxMapPut(method_handler_map, "PUT", webdav_put); |
177 cxMapPut(method_handler_map, "PUT", (void*)webdav_put); |
| 178 cxMapPut(method_handler_map, "COPY", webdav_copy); |
178 cxMapPut(method_handler_map, "COPY", (void*)webdav_copy); |
| 179 cxMapPut(method_handler_map, "MOVE", webdav_move); |
179 cxMapPut(method_handler_map, "MOVE", (void*)webdav_move); |
| 180 cxMapPut(method_handler_map, "LOCK", webdav_lock); |
180 cxMapPut(method_handler_map, "LOCK", (void*)webdav_lock); |
| 181 cxMapPut(method_handler_map, "UNLOCK", webdav_unlock); |
181 cxMapPut(method_handler_map, "UNLOCK", (void*)webdav_unlock); |
| 182 cxMapPut(method_handler_map, "REPORT", webdav_report); |
182 cxMapPut(method_handler_map, "REPORT", (void*)webdav_report); |
| 183 cxMapPut(method_handler_map, "ACL", webdav_acl); |
183 cxMapPut(method_handler_map, "ACL", (void*)webdav_acl); |
| 184 |
184 |
| 185 cxMapPut(method_handler_map, "SEARCH", webdav_search); |
185 cxMapPut(method_handler_map, "SEARCH", (void*)webdav_search); |
| 186 |
186 |
| 187 cxMapPut(method_handler_map, "VERSION-CONTROL", webdav_version_control); |
187 cxMapPut(method_handler_map, "VERSION-CONTROL", (void*)webdav_version_control); |
| 188 cxMapPut(method_handler_map, "CHECKOUT", webdav_checkout); |
188 cxMapPut(method_handler_map, "CHECKOUT", (void*)webdav_checkout); |
| 189 cxMapPut(method_handler_map, "CHECKIN", webdav_checkin); |
189 cxMapPut(method_handler_map, "CHECKIN", (void*)webdav_checkin); |
| 190 cxMapPut(method_handler_map, "UNCHECKOUT", webdav_uncheckout); |
190 cxMapPut(method_handler_map, "UNCHECKOUT", (void*)webdav_uncheckout); |
| 191 cxMapPut(method_handler_map, "MKWORKSPACE", webdav_mkworkspace); |
191 cxMapPut(method_handler_map, "MKWORKSPACE", (void*)webdav_mkworkspace); |
| 192 cxMapPut(method_handler_map, "UPDATE", webdav_update); |
192 cxMapPut(method_handler_map, "UPDATE", (void*)webdav_update); |
| 193 cxMapPut(method_handler_map, "LABEL", webdav_label); |
193 cxMapPut(method_handler_map, "LABEL", (void*)webdav_label); |
| 194 cxMapPut(method_handler_map, "MERGE", webdav_merge); |
194 cxMapPut(method_handler_map, "MERGE", (void*)webdav_merge); |
| 195 |
195 |
| 196 dav_namespace.href = (xmlChar*)"DAV:"; |
196 dav_namespace.href = (xmlChar*)"DAV:"; |
| 197 dav_namespace.prefix = (xmlChar*)"D"; |
197 dav_namespace.prefix = (xmlChar*)"D"; |
| 198 |
198 |
| 199 dav_resourcetype_empty.namespace = &dav_namespace; |
199 dav_resourcetype_empty.namespace = &dav_namespace; |