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

Function pre_config

modules/mappers/mod_rewrite.c:4806–4826  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4804 */
4805
4806static int pre_config(apr_pool_t *pconf,
4807 apr_pool_t *plog,
4808 apr_pool_t *ptemp)
4809{
4810 APR_OPTIONAL_FN_TYPE(ap_register_rewrite_mapfunc) *map_pfn_register;
4811
4812 rewrite_lock_needed = 0;
4813 ap_mutex_register(pconf, rewritemap_mutex_type, NULL, APR_LOCK_DEFAULT, 0);
4814
4815 /* register int: rewritemap handlers */
4816 map_pfn_register = APR_RETRIEVE_OPTIONAL_FN(ap_register_rewrite_mapfunc);
4817 if (map_pfn_register) {
4818 map_pfn_register("tolower", rewrite_mapfunc_tolower);
4819 map_pfn_register("toupper", rewrite_mapfunc_toupper);
4820 map_pfn_register("escape", rewrite_mapfunc_escape);
4821 map_pfn_register("unescape", rewrite_mapfunc_unescape);
4822 }
4823 dbd_acquire = APR_RETRIEVE_OPTIONAL_FN(ap_dbd_acquire);
4824 dbd_prepare = APR_RETRIEVE_OPTIONAL_FN(ap_dbd_prepare);
4825 return OK;
4826}
4827
4828static int post_config(apr_pool_t *p,
4829 apr_pool_t *plog,

Callers

nothing calls this directly

Calls 1

ap_mutex_registerFunction · 0.85

Tested by

no test coverage detected