mirror of
https://github.com/apache/httpd.git
synced 2025-08-10 02:56:11 +00:00
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
This commit is contained in:
@ -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(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(void) ap_custom_response(request_rec *r, int status, char *string);
|
||||||
API_EXPORT(int) ap_exists_config_define(char *name);
|
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
|
/* Authentication stuff. This is one of the places where compatibility
|
||||||
* with the old config files *really* hurts; they don't discriminate at
|
* with the old config files *really* hurts; they don't discriminate at
|
||||||
|
@ -2371,7 +2371,7 @@ static const command_rec core_cmds[] = {
|
|||||||
* Core handlers for various phases of server operation...
|
* 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;
|
void *sconf = r->server->module_config;
|
||||||
core_server_config *conf = ap_get_module_config(sconf, &core_module);
|
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)
|
static void register_hooks(void)
|
||||||
{
|
{
|
||||||
ap_hook_post_config(core_post_config,NULL,NULL,AP_HOOK_REALLY_FIRST);
|
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_process_connection(ap_process_http_connection,NULL,NULL,
|
||||||
AP_HOOK_REALLY_LAST);
|
AP_HOOK_REALLY_LAST);
|
||||||
ap_hook_http_method(core_method,NULL,NULL,AP_HOOK_REALLY_LAST);
|
ap_hook_http_method(core_method,NULL,NULL,AP_HOOK_REALLY_LAST);
|
||||||
|
Reference in New Issue
Block a user