| 2272 | } |
| 2273 | |
| 2274 | void dav_fs_insert_all_liveprops(request_rec *r, const dav_resource *resource, |
| 2275 | dav_prop_insert what, apr_text_header *phdr) |
| 2276 | { |
| 2277 | /* don't insert any liveprops if this isn't "our" resource */ |
| 2278 | if (resource->hooks != &dav_hooks_repository_fs) |
| 2279 | return; |
| 2280 | |
| 2281 | if (!resource->exists) { |
| 2282 | /* a lock-null resource */ |
| 2283 | /* |
| 2284 | ** ### technically, we should insert empty properties. dunno offhand |
| 2285 | ** ### what part of the spec said this, but it was essentially thus: |
| 2286 | ** ### "the properties should be defined, but may have no value". |
| 2287 | */ |
| 2288 | return; |
| 2289 | } |
| 2290 | |
| 2291 | (void) dav_fs_insert_prop(resource, DAV_PROPID_creationdate, |
| 2292 | what, phdr); |
| 2293 | (void) dav_fs_insert_prop(resource, DAV_PROPID_getcontentlength, |
| 2294 | what, phdr); |
| 2295 | (void) dav_fs_insert_prop(resource, DAV_PROPID_getlastmodified, |
| 2296 | what, phdr); |
| 2297 | (void) dav_fs_insert_prop(resource, DAV_PROPID_getetag, |
| 2298 | what, phdr); |
| 2299 | |
| 2300 | #ifdef DAV_FS_HAS_EXECUTABLE |
| 2301 | /* Only insert this property if it is defined for this platform. */ |
| 2302 | (void) dav_fs_insert_prop(resource, DAV_PROPID_FS_executable, |
| 2303 | what, phdr); |
| 2304 | #endif |
| 2305 | |
| 2306 | /* ### we know the others aren't defined as liveprops */ |
| 2307 | } |
| 2308 | |
| 2309 | void dav_fs_register(apr_pool_t *p) |
| 2310 | { |
nothing calls this directly
no test coverage detected