From: Jeff Trawick Date: Tue, 6 Jun 2000 01:49:30 +0000 (+0000) Subject: Port mod_mmap_static to 2.0. Make it go faster. X-Git-Tag: APACHE_2_0_ALPHA_5~431 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c84d2199e546f3e8ca8140cf7bb2f823ee3c7316;p=apache Port mod_mmap_static to 2.0. Make it go faster. core: Export core_translate() as ap_core_translate() for use by mod_mmap_static. Submitted by: Greg Ames Reviewed by: Jeff Trawick git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85437 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/include/http_core.h b/include/http_core.h index 71ad9536f0..d9b802d0ca 100644 --- a/include/http_core.h +++ b/include/http_core.h @@ -137,6 +137,7 @@ API_EXPORT(unsigned) ap_get_server_port(const request_rec *r); API_EXPORT(unsigned long) ap_get_limit_req_body(const request_rec *r); API_EXPORT(void) ap_custom_response(request_rec *r, int status, char *string); API_EXPORT(int) ap_exists_config_define(char *name); +API_EXPORT(int) ap_core_translate(request_rec *r); /* Authentication stuff. This is one of the places where compatibility * with the old config files *really* hurts; they don't discriminate at diff --git a/modules/http/http_core.c b/modules/http/http_core.c index 0843b35356..027f045973 100644 --- a/modules/http/http_core.c +++ b/modules/http/http_core.c @@ -2371,7 +2371,7 @@ static const command_rec core_cmds[] = { * Core handlers for various phases of server operation... */ -static int core_translate(request_rec *r) +API_EXPORT(int) ap_core_translate(request_rec *r) { void *sconf = r->server->module_config; core_server_config *conf = ap_get_module_config(sconf, &core_module); @@ -2616,7 +2616,7 @@ static unsigned short core_port(const request_rec *r) static void register_hooks(void) { ap_hook_post_config(core_post_config,NULL,NULL,AP_HOOK_REALLY_FIRST); - ap_hook_translate_name(core_translate,NULL,NULL,AP_HOOK_REALLY_LAST); + ap_hook_translate_name(ap_core_translate,NULL,NULL,AP_HOOK_REALLY_LAST); ap_hook_process_connection(ap_process_http_connection,NULL,NULL, AP_HOOK_REALLY_LAST); ap_hook_http_method(core_method,NULL,NULL,AP_HOOK_REALLY_LAST);