1
0
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:
Roy T. Fielding
1999-08-26 14:18:40 +00:00
parent a8203308d9
commit e3978962f9
21 changed files with 333 additions and 576 deletions

View File

@@ -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