MCPcopy Create free account
hub / github.com/apache/httpd / dav_find_liveprop_provider

Function dav_find_liveprop_provider

modules/dav/main/props.c:229–262  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

227
228
229static int dav_find_liveprop_provider(dav_propdb *propdb,
230 const char *ns_uri,
231 const char *propname,
232 const dav_hooks_liveprop **provider)
233{
234 int propid;
235
236 *provider = NULL;
237
238 if (ns_uri == NULL) {
239 /* policy: liveprop providers cannot define no-namespace properties */
240 return DAV_PROPID_CORE_UNKNOWN;
241 }
242
243 /* check liveprop providers first, so they can define core properties */
244 propid = dav_run_find_liveprop(propdb->resource, ns_uri, propname,
245 provider);
246 if (propid != 0) {
247 return propid;
248 }
249
250 /* check for core property */
251 if (strcmp(ns_uri, "DAV:") == 0) {
252 const char * const *p = dav_core_props;
253
254 for (propid = DAV_PROPID_CORE; *p != NULL; ++p, ++propid)
255 if (strcmp(propname, *p) == 0) {
256 return propid;
257 }
258 }
259
260 /* no provider for this property */
261 return DAV_PROPID_CORE_UNKNOWN;
262}
263
264static void dav_find_liveprop(dav_propdb *propdb, apr_xml_elem *elem)
265{

Callers 2

dav_find_livepropFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected