| 1080 | } |
| 1081 | |
| 1082 | AP_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 | |
| 1104 | static const char *execute_now(char *cmd_line, const char *args, |
| 1105 | cmd_parms *parms, |
no test coverage detected