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

Function dav_xmlns_generate

modules/dav/main/util.c:510–526  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

508}
509
510DAV_DECLARE(void) dav_xmlns_generate(dav_xmlns_info *xi,
511 apr_text_header *phdr)
512{
513 apr_hash_index_t *hi = apr_hash_first(xi->pool, xi->prefix_uri);
514
515 for (; hi != NULL; hi = apr_hash_next(hi)) {
516 const void *prefix;
517 void *uri;
518 const char *s;
519
520 apr_hash_this(hi, &prefix, NULL, &uri);
521
522 s = apr_pstrcat(xi->pool, " xmlns:", (const char *)prefix, "=\"",
523 (const char *)uri, "\"", NULL);
524 apr_text_append(xi->pool, phdr, s);
525 }
526}
527
528/* ---------------------------------------------------------------
529**

Callers 3

dav_get_allpropsFunction · 0.85
dav_get_propsFunction · 0.85
mod_dav.hFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected