| 2121 | } |
| 2122 | |
| 2123 | AP_DECLARE(struct ap_logconf *) ap_new_log_config(apr_pool_t *p, |
| 2124 | const struct ap_logconf *old) |
| 2125 | { |
| 2126 | struct ap_logconf *l = apr_pcalloc(p, sizeof(struct ap_logconf)); |
| 2127 | if (old) { |
| 2128 | l->level = old->level; |
| 2129 | if (old->module_levels) { |
| 2130 | l->module_levels = |
| 2131 | apr_pmemdup(p, old->module_levels, conf_vector_length); |
| 2132 | } |
| 2133 | } |
| 2134 | else { |
| 2135 | l->level = APLOG_UNSET; |
| 2136 | } |
| 2137 | return l; |
| 2138 | } |
| 2139 | |
| 2140 | AP_DECLARE(void) ap_merge_log_config(const struct ap_logconf *old_conf, |
| 2141 | struct ap_logconf *new_conf) |
no outgoing calls
no test coverage detected