mirror of
https://github.com/apache/httpd.git
synced 2025-11-09 15:21:02 +03:00
Start to implement module-defined hooks that are a) fast and b) typesafe.
Replace pre_connection module call with a register_hook call and implement pre_connection as a hook. The intent is that these hooks will be extended to allow Apache to be multi-protocol, and also to allow the calling order to be specified on a per-hook/per-module basis. [Ben Laurie] Port a bunch of modules to the new module structure. ["Michael H. Voase" <mvoase@midcoast.com.au>] Submitted by: Ben Laurie git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@83770 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -58,6 +58,8 @@
|
||||
#ifndef APACHE_HTTP_REQUEST_H
|
||||
#define APACHE_HTTP_REQUEST_H
|
||||
|
||||
#include "ap_hooks.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
@@ -110,6 +112,14 @@ void ap_process_request(request_rec *);
|
||||
API_EXPORT(void) ap_die(int type, request_rec *r);
|
||||
#endif
|
||||
|
||||
/* Hooks */
|
||||
DECLARE_HOOK(int,translate_name,(request_rec *))
|
||||
DECLARE_HOOK(int,check_user_id,(request_rec *))
|
||||
DECLARE_HOOK(int,fixups,(request_rec *))
|
||||
DECLARE_HOOK(int,type_checker,(request_rec *))
|
||||
DECLARE_HOOK(int,access_checker,(request_rec *))
|
||||
DECLARE_HOOK(int,auth_checker,(request_rec *))
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user