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

Function ap_walk_config

server/config.c:1360–1385  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1358}
1359
1360AP_DECLARE(const char *) ap_walk_config(ap_directive_t *current,
1361 cmd_parms *parms,
1362 ap_conf_vector_t *section_vector)
1363{
1364 ap_conf_vector_t *oldconfig = parms->context;
1365
1366 parms->context = section_vector;
1367
1368 /* scan through all directives, executing each one */
1369 for (; current != NULL; current = current->next) {
1370 const char *errmsg;
1371
1372 parms->directive = current;
1373
1374 /* actually parse the command and execute the correct function */
1375 errmsg = ap_walk_config_sub(current, parms, section_vector);
1376 if (errmsg != NULL) {
1377 /* restore the context (just in case) */
1378 parms->context = oldconfig;
1379 return errmsg;
1380 }
1381 }
1382
1383 parms->context = oldconfig;
1384 return NULL;
1385}
1386
1387AP_DECLARE(const char *) ap_build_config(cmd_parms *parms,
1388 apr_pool_t *p, apr_pool_t *temp_pool,

Callers 14

add_authz_sectionFunction · 0.85
authaliassectionFunction · 0.85
md_config_sec_startFunction · 0.85
proxysectionFunction · 0.85
ap_process_config_treeFunction · 0.85
ap_parse_htaccessFunction · 0.85
ap_limit_sectionFunction · 0.85
dirsectionFunction · 0.85
urlsectionFunction · 0.85
filesectionFunction · 0.85
ifsectionFunction · 0.85

Calls 1

ap_walk_config_subFunction · 0.85

Tested by

no test coverage detected