]> granicus.if.org Git - apache/commitdiff
Port mod_mmap_static to 2.0. Make it go faster.
authorJeff Trawick <trawick@apache.org>
Tue, 6 Jun 2000 01:49:30 +0000 (01:49 +0000)
committerJeff Trawick <trawick@apache.org>
Tue, 6 Jun 2000 01:49:30 +0000 (01:49 +0000)
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

include/http_core.h
modules/http/http_core.c

index 71ad9536f08d7e94ab4b2a30b6d03505e429f725..d9b802d0ca01ab7c27b6134944652743aecbb2b5 100644 (file)
@@ -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
index 0843b35356de42f1d806839a04365440d4d607eb..027f04597331e3be8895f69f20d704bc039ca816 100644 (file)
@@ -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);