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

Function ap_set_config_vectors

server/config.c:1082–1102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1080}
1081
1082AP_CORE_DECLARE(void *) ap_set_config_vectors(server_rec *server,
1083 ap_conf_vector_t *section_vector,
1084 const char *section,
1085 module *mod, apr_pool_t *pconf)
1086{
1087 void *section_config = ap_get_module_config(section_vector, mod);
1088 void *server_config = ap_get_module_config(server->module_config, mod);
1089
1090 if (!section_config && mod->create_dir_config) {
1091 /* ### need to fix the create_dir_config functions' prototype... */
1092 section_config = (*mod->create_dir_config)(pconf, (char *)section);
1093 ap_set_module_config(section_vector, mod, section_config);
1094 }
1095
1096 if (!server_config && mod->create_server_config) {
1097 server_config = (*mod->create_server_config)(pconf, server);
1098 ap_set_module_config(server->module_config, mod, server_config);
1099 }
1100
1101 return section_config;
1102}
1103
1104static const char *execute_now(char *cmd_line, const char *args,
1105 cmd_parms *parms,

Callers 6

proxysectionFunction · 0.85
ap_walk_config_subFunction · 0.85
dirsectionFunction · 0.85
urlsectionFunction · 0.85
filesectionFunction · 0.85
ifsectionFunction · 0.85

Calls 2

ap_get_module_configFunction · 0.85
ap_set_module_configFunction · 0.85

Tested by

no test coverage detected