1
0
mirror of https://github.com/apache/httpd.git synced 2025-08-08 15:02:10 +03:00

add AP_ prefix to *HOOK* macros

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85045 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Doug MacEachern
2000-04-26 07:14:39 +00:00
parent 4ea1a363d3
commit 6644b34387
35 changed files with 118 additions and 118 deletions

View File

@@ -413,12 +413,12 @@ CORE_EXPORT(const char *) ap_handle_command(cmd_parms *parms, void *config, cons
#endif #endif
/* Hooks */ /* Hooks */
DECLARE_HOOK(int,header_parser,(request_rec *)) AP_DECLARE_HOOK(int,header_parser,(request_rec *))
DECLARE_HOOK(void,post_config, AP_DECLARE_HOOK(void,post_config,
(ap_pool_t *pconf,ap_pool_t *plog,ap_pool_t *ptemp,server_rec *s)) (ap_pool_t *pconf,ap_pool_t *plog,ap_pool_t *ptemp,server_rec *s))
DECLARE_HOOK(void,open_logs, AP_DECLARE_HOOK(void,open_logs,
(ap_pool_t *pconf,ap_pool_t *plog,ap_pool_t *ptemp,server_rec *s)) (ap_pool_t *pconf,ap_pool_t *plog,ap_pool_t *ptemp,server_rec *s))
DECLARE_HOOK(void,child_init,(ap_pool_t *pchild, server_rec *s)) AP_DECLARE_HOOK(void,child_init,(ap_pool_t *pchild, server_rec *s))
#ifdef __cplusplus #ifdef __cplusplus
} }

View File

@@ -73,8 +73,8 @@ int ap_process_http_connection(conn_rec *);
#endif #endif
/* Hooks */ /* Hooks */
DECLARE_HOOK(void,pre_connection,(conn_rec *)) AP_DECLARE_HOOK(void,pre_connection,(conn_rec *))
DECLARE_HOOK(int,process_connection,(conn_rec *)) AP_DECLARE_HOOK(int,process_connection,(conn_rec *))
#ifdef __cplusplus #ifdef __cplusplus
} }

View File

@@ -227,10 +227,10 @@ API_EXPORT(int) ap_method_number_of(const char *method);
* post_read_request --- run right after read_request or internal_redirect, * post_read_request --- run right after read_request or internal_redirect,
* and not run during any subrequests. * and not run during any subrequests.
*/ */
DECLARE_HOOK(int,post_read_request,(request_rec *)) AP_DECLARE_HOOK(int,post_read_request,(request_rec *))
DECLARE_HOOK(int,log_transaction,(request_rec *)) AP_DECLARE_HOOK(int,log_transaction,(request_rec *))
DECLARE_HOOK(const char *,http_method,(const request_rec *)) AP_DECLARE_HOOK(const char *,http_method,(const request_rec *))
DECLARE_HOOK(unsigned short,default_port,(const request_rec *)) AP_DECLARE_HOOK(unsigned short,default_port,(const request_rec *))
#ifdef __cplusplus #ifdef __cplusplus
} }

View File

@@ -114,12 +114,12 @@ API_EXPORT(void) ap_die(int type, request_rec *r);
#endif #endif
/* Hooks */ /* Hooks */
DECLARE_HOOK(int,translate_name,(request_rec *)) AP_DECLARE_HOOK(int,translate_name,(request_rec *))
DECLARE_HOOK(int,check_user_id,(request_rec *)) AP_DECLARE_HOOK(int,check_user_id,(request_rec *))
DECLARE_HOOK(int,fixups,(request_rec *)) AP_DECLARE_HOOK(int,fixups,(request_rec *))
DECLARE_HOOK(int,type_checker,(request_rec *)) AP_DECLARE_HOOK(int,type_checker,(request_rec *))
DECLARE_HOOK(int,access_checker,(request_rec *)) AP_DECLARE_HOOK(int,access_checker,(request_rec *))
DECLARE_HOOK(int,auth_checker,(request_rec *)) AP_DECLARE_HOOK(int,auth_checker,(request_rec *))
#ifdef __cplusplus #ifdef __cplusplus
} }

View File

@@ -392,7 +392,7 @@ static int check_dir_access(request_rec *r)
static void register_hooks(void) static void register_hooks(void)
{ {
ap_hook_access_checker(check_dir_access,NULL,NULL,HOOK_MIDDLE); ap_hook_access_checker(check_dir_access,NULL,NULL,AP_HOOK_MIDDLE);
} }
module MODULE_VAR_EXPORT access_module = module MODULE_VAR_EXPORT access_module =

View File

@@ -317,8 +317,8 @@ static int check_user_access(request_rec *r)
static void register_hooks(void) static void register_hooks(void)
{ {
ap_hook_check_user_id(authenticate_basic_user,NULL,NULL,HOOK_MIDDLE); ap_hook_check_user_id(authenticate_basic_user,NULL,NULL,AP_HOOK_MIDDLE);
ap_hook_auth_checker(check_user_access,NULL,NULL,HOOK_MIDDLE); ap_hook_auth_checker(check_user_access,NULL,NULL,AP_HOOK_MIDDLE);
} }
module MODULE_VAR_EXPORT auth_module = module MODULE_VAR_EXPORT auth_module =

View File

@@ -291,8 +291,8 @@ static int check_anon_access(request_rec *r)
} }
static void register_hooks(void) static void register_hooks(void)
{ {
ap_hook_check_user_id(anon_authenticate_basic_user,NULL,NULL,HOOK_MIDDLE); ap_hook_check_user_id(anon_authenticate_basic_user,NULL,NULL,AP_HOOK_MIDDLE);
ap_hook_auth_checker(check_anon_access,NULL,NULL,HOOK_MIDDLE); ap_hook_auth_checker(check_anon_access,NULL,NULL,AP_HOOK_MIDDLE);
} }
module MODULE_VAR_EXPORT auth_anon_module = module MODULE_VAR_EXPORT auth_anon_module =

View File

@@ -400,8 +400,8 @@ static int db_check_auth(request_rec *r)
static void register_hooks(void) static void register_hooks(void)
{ {
ap_hook_check_user_id(db_authenticate_basic_user,NULL,NULL,HOOK_MIDDLE); ap_hook_check_user_id(db_authenticate_basic_user,NULL,NULL,AP_HOOK_MIDDLE);
ap_hook_auth_checker(db_check_auth,NULL,NULL,HOOK_MIDDLE); ap_hook_auth_checker(db_check_auth,NULL,NULL,AP_HOOK_MIDDLE);
} }
module auth_db_module = module auth_db_module =

View File

@@ -313,8 +313,8 @@ static int dbm_check_auth(request_rec *r)
static void register_hooks(void) static void register_hooks(void)
{ {
ap_hook_check_user_id(dbm_authenticate_basic_user, NULL, NULL, HOOK_MIDDLE); ap_hook_check_user_id(dbm_authenticate_basic_user, NULL, NULL, AP_HOOK_MIDDLE);
ap_hook_auth_checker(dbm_check_auth, NULL, NULL, HOOK_MIDDLE); ap_hook_auth_checker(dbm_check_auth, NULL, NULL, AP_HOOK_MIDDLE);
} }
module auth_dbm_module = module auth_dbm_module =

View File

@@ -1871,9 +1871,9 @@ static void register_hooks(void)
ap_hook_post_config(initialize_module, NULL, cfgPost, 0); ap_hook_post_config(initialize_module, NULL, cfgPost, 0);
ap_hook_post_read_request(parse_hdr_and_update_nc, parsePre, NULL, 0); ap_hook_post_read_request(parse_hdr_and_update_nc, parsePre, NULL, 0);
ap_hook_check_user_id(authenticate_digest_user, NULL, NULL, HOOK_MIDDLE); ap_hook_check_user_id(authenticate_digest_user, NULL, NULL, AP_HOOK_MIDDLE);
ap_hook_auth_checker(digest_check_auth, NULL, NULL, HOOK_MIDDLE); ap_hook_auth_checker(digest_check_auth, NULL, NULL, AP_HOOK_MIDDLE);
ap_hook_fixups(add_auth_info, NULL, NULL, HOOK_MIDDLE); ap_hook_fixups(add_auth_info, NULL, NULL, AP_HOOK_MIDDLE);
} }
module MODULE_VAR_EXPORT auth_digest_module = module MODULE_VAR_EXPORT auth_digest_module =

View File

@@ -529,13 +529,13 @@ static command_rec mmap_cmds[] =
static void register_hooks(void) static void register_hooks(void)
{ {
/* static const char* const aszPre[]={"http_core.c",NULL}; */ /* static const char* const aszPre[]={"http_core.c",NULL}; */
/* ap_hook_pre_config(pre_config,NULL,NULL,HOOK_MIDDLE); */ /* ap_hook_pre_config(pre_config,NULL,NULL,AP_HOOK_MIDDLE); */
ap_hook_post_config(file_cache_post_config, NULL, NULL, HOOK_MIDDLE); ap_hook_post_config(file_cache_post_config, NULL, NULL, AP_HOOK_MIDDLE);
ap_hook_translate_name(file_cache_xlat, NULL, NULL, HOOK_MIDDLE); ap_hook_translate_name(file_cache_xlat, NULL, NULL, AP_HOOK_MIDDLE);
/* This trick doesn't work apparently because the translate hooks /* This trick doesn't work apparently because the translate hooks
are single shot. If the core_hook returns OK, then our hook is are single shot. If the core_hook returns OK, then our hook is
not called. not called.
ap_hook_translate_name(file_cache_xlat, aszPre, NULL, HOOK_MIDDLE); ap_hook_translate_name(file_cache_xlat, aszPre, NULL, AP_HOOK_MIDDLE);
*/ */
}; };

View File

@@ -118,7 +118,7 @@ static const command_rec echo_cmds[] = {
static void register_hooks(void) static void register_hooks(void)
{ {
ap_hook_process_connection(process_echo_connection,NULL,NULL,HOOK_MIDDLE); ap_hook_process_connection(process_echo_connection,NULL,NULL,AP_HOOK_MIDDLE);
} }
API_VAR_EXPORT module echo_module = { API_VAR_EXPORT module echo_module = {

View File

@@ -1119,9 +1119,9 @@ static const handler_rec example_handlers[] =
* before this module. * before this module.
* successors -> a list of modules whose calls to this hook must come * successors -> a list of modules whose calls to this hook must come
* after this module. * after this module.
* position -> The relative position of this module. One of HOOK_FIRST, * position -> The relative position of this module. One of AP_HOOK_FIRST,
* HOOK_MIDDLE, or HOOK_LAST. Most modules will use * AP_HOOK_MIDDLE, or AP_HOOK_LAST. Most modules will use
* HOOK_MIDDLE. If multiple modules use the same relative * AP_HOOK_MIDDLE. If multiple modules use the same relative
* position, Apache will determine which to call first. * position, Apache will determine which to call first.
* If your module relies on another module to run first, * If your module relies on another module to run first,
* or another module running after yours, use the * or another module running after yours, use the
@@ -1130,28 +1130,28 @@ static const handler_rec example_handlers[] =
static void register_hooks(void) static void register_hooks(void)
{ {
/* module initializer */ /* module initializer */
ap_hook_post_config(example_init, NULL, NULL, HOOK_MIDDLE); ap_hook_post_config(example_init, NULL, NULL, AP_HOOK_MIDDLE);
/* [2] filename-to-URI translation */ /* [2] filename-to-URI translation */
ap_hook_translate_name(example_translate_handler, NULL, NULL, HOOK_MIDDLE); ap_hook_translate_name(example_translate_handler, NULL, NULL, AP_HOOK_MIDDLE);
/* [5] check/validate user_id */ /* [5] check/validate user_id */
ap_hook_check_user_id(example_check_user_id, NULL, NULL, HOOK_MIDDLE); ap_hook_check_user_id(example_check_user_id, NULL, NULL, AP_HOOK_MIDDLE);
/* [6] check user_id is valid *here* */ /* [6] check user_id is valid *here* */
ap_hook_auth_checker(example_auth_checker, NULL, NULL, HOOK_MIDDLE); ap_hook_auth_checker(example_auth_checker, NULL, NULL, AP_HOOK_MIDDLE);
/* [4] check access by host address */ /* [4] check access by host address */
ap_hook_access_checker(example_access_checker, NULL, NULL, HOOK_MIDDLE); ap_hook_access_checker(example_access_checker, NULL, NULL, AP_HOOK_MIDDLE);
/* [7] MIME type checker/setter */ /* [7] MIME type checker/setter */
ap_hook_type_checker(example_type_checker, NULL, NULL, HOOK_MIDDLE); ap_hook_type_checker(example_type_checker, NULL, NULL, AP_HOOK_MIDDLE);
/* [8] fixups */ /* [8] fixups */
ap_hook_fixups(example_fixer_upper, NULL, NULL, HOOK_MIDDLE); ap_hook_fixups(example_fixer_upper, NULL, NULL, AP_HOOK_MIDDLE);
/* [10] logger */ /* [10] logger */
ap_hook_log_transaction(example_logger, NULL, NULL, HOOK_MIDDLE); ap_hook_log_transaction(example_logger, NULL, NULL, AP_HOOK_MIDDLE);
/* [3] header parser */ /* [3] header parser */
ap_hook_header_parser(example_header_parser, NULL, NULL, HOOK_MIDDLE); ap_hook_header_parser(example_header_parser, NULL, NULL, AP_HOOK_MIDDLE);
/* process initializer */ /* process initializer */
ap_hook_child_init(example_child_init, NULL, NULL, HOOK_MIDDLE); ap_hook_child_init(example_child_init, NULL, NULL, AP_HOOK_MIDDLE);
/* [1] post read_request handling */ /* [1] post read_request handling */
ap_hook_post_read_request(example_post_read_request, NULL, NULL, ap_hook_post_read_request(example_post_read_request, NULL, NULL,
HOOK_MIDDLE); AP_HOOK_MIDDLE);
} }
/*--------------------------------------------------------------------------*/ /*--------------------------------------------------------------------------*/

View File

@@ -995,7 +995,7 @@ static const handler_rec cgid_handlers[] =
static void register_hook(void) static void register_hook(void)
{ {
ap_hook_post_config(cgid_init, NULL, NULL, HOOK_MIDDLE); ap_hook_post_config(cgid_init, NULL, NULL, AP_HOOK_MIDDLE);
} }
module MODULE_VAR_EXPORT cgid_module = { module MODULE_VAR_EXPORT cgid_module = {

View File

@@ -2519,15 +2519,15 @@ static unsigned short core_port(const request_rec *r)
static void register_hooks(void) static void register_hooks(void)
{ {
ap_hook_translate_name(core_translate,NULL,NULL,HOOK_REALLY_LAST); ap_hook_translate_name(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,
HOOK_REALLY_LAST); AP_HOOK_REALLY_LAST);
ap_hook_http_method(core_method,NULL,NULL,HOOK_REALLY_LAST); ap_hook_http_method(core_method,NULL,NULL,AP_HOOK_REALLY_LAST);
ap_hook_default_port(core_port,NULL,NULL,HOOK_REALLY_LAST); ap_hook_default_port(core_port,NULL,NULL,AP_HOOK_REALLY_LAST);
ap_hook_open_logs(core_open_logs,NULL,NULL,HOOK_MIDDLE); ap_hook_open_logs(core_open_logs,NULL,NULL,AP_HOOK_MIDDLE);
/* FIXME: I suspect we can eliminate the need for these - Ben */ /* FIXME: I suspect we can eliminate the need for these - Ben */
ap_hook_type_checker(do_nothing,NULL,NULL,HOOK_REALLY_LAST); ap_hook_type_checker(do_nothing,NULL,NULL,AP_HOOK_REALLY_LAST);
ap_hook_access_checker(do_nothing,NULL,NULL,HOOK_REALLY_LAST); ap_hook_access_checker(do_nothing,NULL,NULL,AP_HOOK_REALLY_LAST);
} }
API_VAR_EXPORT module core_module = { API_VAR_EXPORT module core_module = {

View File

@@ -78,11 +78,11 @@
#include "mpm_status.h" #include "mpm_status.h"
#include <stdarg.h> #include <stdarg.h>
HOOK_STRUCT( AP_HOOK_STRUCT(
HOOK_LINK(post_read_request) AP_HOOK_LINK(post_read_request)
HOOK_LINK(log_transaction) AP_HOOK_LINK(log_transaction)
HOOK_LINK(http_method) AP_HOOK_LINK(http_method)
HOOK_LINK(default_port) AP_HOOK_LINK(default_port)
) )
#define SET_BYTES_SENT(r) \ #define SET_BYTES_SENT(r) \
@@ -2833,9 +2833,9 @@ API_EXPORT(void) ap_send_error_response(request_rec *r, int recursive_error)
ap_rflush(r); ap_rflush(r);
} }
IMPLEMENT_HOOK_RUN_ALL(int,post_read_request,(request_rec *r),(r),OK,DECLINED) AP_IMPLEMENT_HOOK_RUN_ALL(int,post_read_request,(request_rec *r),(r),OK,DECLINED)
IMPLEMENT_HOOK_RUN_ALL(int,log_transaction,(request_rec *r),(r),OK,DECLINED) AP_IMPLEMENT_HOOK_RUN_ALL(int,log_transaction,(request_rec *r),(r),OK,DECLINED)
IMPLEMENT_HOOK_RUN_FIRST(const char *,http_method,(const request_rec *r),(r), AP_IMPLEMENT_HOOK_RUN_FIRST(const char *,http_method,(const request_rec *r),(r),
NULL) NULL)
IMPLEMENT_HOOK_RUN_FIRST(unsigned short,default_port,(const request_rec *r), AP_IMPLEMENT_HOOK_RUN_FIRST(unsigned short,default_port,(const request_rec *r),
(r),0) (r),0)

View File

@@ -77,21 +77,21 @@
#include "http_main.h" #include "http_main.h"
#include "apr_fnmatch.h" #include "apr_fnmatch.h"
HOOK_STRUCT( AP_HOOK_STRUCT(
HOOK_LINK(translate_name) AP_HOOK_LINK(translate_name)
HOOK_LINK(check_user_id) AP_HOOK_LINK(check_user_id)
HOOK_LINK(fixups) AP_HOOK_LINK(fixups)
HOOK_LINK(type_checker) AP_HOOK_LINK(type_checker)
HOOK_LINK(access_checker) AP_HOOK_LINK(access_checker)
HOOK_LINK(auth_checker) AP_HOOK_LINK(auth_checker)
) )
IMPLEMENT_HOOK_RUN_FIRST(int,translate_name,(request_rec *r),(r),DECLINED) AP_IMPLEMENT_HOOK_RUN_FIRST(int,translate_name,(request_rec *r),(r),DECLINED)
IMPLEMENT_HOOK_RUN_FIRST(int,check_user_id,(request_rec *r),(r),DECLINED) AP_IMPLEMENT_HOOK_RUN_FIRST(int,check_user_id,(request_rec *r),(r),DECLINED)
IMPLEMENT_HOOK_RUN_ALL(int,fixups,(request_rec *r),(r),OK,DECLINED) AP_IMPLEMENT_HOOK_RUN_ALL(int,fixups,(request_rec *r),(r),OK,DECLINED)
IMPLEMENT_HOOK_RUN_FIRST(int,type_checker,(request_rec *r),(r),DECLINED) AP_IMPLEMENT_HOOK_RUN_FIRST(int,type_checker,(request_rec *r),(r),DECLINED)
IMPLEMENT_HOOK_RUN_ALL(int,access_checker,(request_rec *r),(r),OK,DECLINED) AP_IMPLEMENT_HOOK_RUN_ALL(int,access_checker,(request_rec *r),(r),OK,DECLINED)
IMPLEMENT_HOOK_RUN_FIRST(int,auth_checker,(request_rec *r),(r),DECLINED) AP_IMPLEMENT_HOOK_RUN_FIRST(int,auth_checker,(request_rec *r),(r),DECLINED)
/***************************************************************** /*****************************************************************
* *

View File

@@ -737,8 +737,8 @@ static int find_ct(request_rec *r)
static void register_hooks(void) static void register_hooks(void)
{ {
ap_hook_type_checker(find_ct,NULL,NULL,HOOK_MIDDLE); ap_hook_type_checker(find_ct,NULL,NULL,AP_HOOK_MIDDLE);
ap_hook_post_config(mime_post_config,NULL,NULL,HOOK_MIDDLE); ap_hook_post_config(mime_post_config,NULL,NULL,AP_HOOK_MIDDLE);
} }
module MODULE_VAR_EXPORT mime_module = { module MODULE_VAR_EXPORT mime_module = {

View File

@@ -1139,8 +1139,8 @@ static void flush_all_logs(server_rec *s)
static void register_hooks(void) static void register_hooks(void)
{ {
ap_hook_open_logs(init_config_log,NULL,NULL,HOOK_MIDDLE); ap_hook_open_logs(init_config_log,NULL,NULL,AP_HOOK_MIDDLE);
ap_hook_log_transaction(multi_log_transaction,NULL,NULL,HOOK_MIDDLE); ap_hook_log_transaction(multi_log_transaction,NULL,NULL,AP_HOOK_MIDDLE);
} }
module MODULE_VAR_EXPORT config_log_module = module MODULE_VAR_EXPORT config_log_module =

View File

@@ -401,8 +401,8 @@ static void register_hooks(void)
{ {
static const char * const aszPre[]={ "mod_userdir.c",NULL }; static const char * const aszPre[]={ "mod_userdir.c",NULL };
ap_hook_translate_name(translate_alias_redir,aszPre,NULL,HOOK_MIDDLE); ap_hook_translate_name(translate_alias_redir,aszPre,NULL,AP_HOOK_MIDDLE);
ap_hook_fixups(fixup_redir,NULL,NULL,HOOK_MIDDLE); ap_hook_fixups(fixup_redir,NULL,NULL,AP_HOOK_MIDDLE);
} }
module MODULE_VAR_EXPORT alias_module = module MODULE_VAR_EXPORT alias_module =

View File

@@ -2739,8 +2739,8 @@ static const handler_rec negotiation_handlers[] =
static void register_hooks(void) static void register_hooks(void)
{ {
ap_hook_fixups(fix_encoding,NULL,NULL,HOOK_MIDDLE); ap_hook_fixups(fix_encoding,NULL,NULL,AP_HOOK_MIDDLE);
ap_hook_type_checker(handle_multi,NULL,NULL,HOOK_FIRST); ap_hook_type_checker(handle_multi,NULL,NULL,AP_HOOK_FIRST);
} }
module MODULE_VAR_EXPORT negotiation_module = module MODULE_VAR_EXPORT negotiation_module =

View File

@@ -202,12 +202,12 @@ static const handler_rec handler_table[] = {
static void register_hooks(void) static void register_hooks(void)
{ {
ap_hook_post_config(init_module,NULL,NULL,HOOK_MIDDLE); ap_hook_post_config(init_module,NULL,NULL,AP_HOOK_MIDDLE);
ap_hook_child_init(init_child,NULL,NULL,HOOK_MIDDLE); ap_hook_child_init(init_child,NULL,NULL,AP_HOOK_MIDDLE);
ap_hook_fixups(hook_fixup,NULL,NULL,HOOK_FIRST); ap_hook_fixups(hook_fixup,NULL,NULL,AP_HOOK_FIRST);
ap_hook_translate_name(hook_uri2file,NULL,NULL,HOOK_FIRST); ap_hook_translate_name(hook_uri2file,NULL,NULL,AP_HOOK_FIRST);
ap_hook_type_checker(hook_mimetype,NULL,NULL,HOOK_MIDDLE); ap_hook_type_checker(hook_mimetype,NULL,NULL,AP_HOOK_MIDDLE);
} }
/* the main config structure */ /* the main config structure */

View File

@@ -551,7 +551,7 @@ static int check_speling(request_rec *r)
static void register_hooks(void) static void register_hooks(void)
{ {
ap_hook_fixups(check_speling,NULL,NULL,HOOK_LAST); ap_hook_fixups(check_speling,NULL,NULL,AP_HOOK_LAST);
} }
module MODULE_VAR_EXPORT speling_module = module MODULE_VAR_EXPORT speling_module =

View File

@@ -342,7 +342,7 @@ static void register_hooks(void)
{ {
static const char * const aszSucc[]={ "mod_alias.c",NULL }; static const char * const aszSucc[]={ "mod_alias.c",NULL };
ap_hook_translate_name(translate_userdir,NULL,aszSucc,HOOK_MIDDLE); ap_hook_translate_name(translate_userdir,NULL,aszSucc,AP_HOOK_MIDDLE);
} }
module userdir_module = { module userdir_module = {

View File

@@ -460,7 +460,7 @@ static int mva_translate(request_rec *r)
static void register_hooks(void) static void register_hooks(void)
{ {
ap_hook_translate_name(mva_translate, NULL, NULL, HOOK_MIDDLE); ap_hook_translate_name(mva_translate, NULL, NULL, AP_HOOK_MIDDLE);
}; };
module MODULE_VAR_EXPORT vhost_alias_module = module MODULE_VAR_EXPORT vhost_alias_module =

View File

@@ -379,7 +379,7 @@ static int add_cern_meta_data(request_rec *r)
} }
static void register_hooks(void) static void register_hooks(void)
{ {
ap_hook_fixups(add_cern_meta_data,NULL,NULL,HOOK_MIDDLE); ap_hook_fixups(add_cern_meta_data,NULL,NULL,AP_HOOK_MIDDLE);
} }
module MODULE_VAR_EXPORT cern_meta_module = module MODULE_VAR_EXPORT cern_meta_module =
{ {

View File

@@ -254,7 +254,7 @@ static int fixup_env_module(request_rec *r)
static void register_hooks(void) static void register_hooks(void)
{ {
ap_hook_fixups(fixup_env_module,NULL,NULL,HOOK_MIDDLE); ap_hook_fixups(fixup_env_module,NULL,NULL,AP_HOOK_MIDDLE);
} }

View File

@@ -494,7 +494,7 @@ static int add_expires(request_rec *r)
static void register_hooks(void) static void register_hooks(void)
{ {
ap_hook_fixups(add_expires,NULL,NULL,HOOK_MIDDLE); ap_hook_fixups(add_expires,NULL,NULL,AP_HOOK_MIDDLE);
} }
module MODULE_VAR_EXPORT expires_module = module MODULE_VAR_EXPORT expires_module =

View File

@@ -244,7 +244,7 @@ static int fixup_headers(request_rec *r)
} }
static void register_hooks(void) static void register_hooks(void)
{ {
ap_hook_fixups(fixup_headers,NULL,NULL,HOOK_MIDDLE); ap_hook_fixups(fixup_headers,NULL,NULL,AP_HOOK_MIDDLE);
} }
module MODULE_VAR_EXPORT headers_module = module MODULE_VAR_EXPORT headers_module =
{ {

View File

@@ -2487,8 +2487,8 @@ static void register_hooks(void)
/* mod_mime_magic should be run after mod_mime, if at all. */ /* mod_mime_magic should be run after mod_mime, if at all. */
ap_hook_type_checker(magic_find_ct, aszPre, NULL, HOOK_MIDDLE); ap_hook_type_checker(magic_find_ct, aszPre, NULL, AP_HOOK_MIDDLE);
ap_hook_post_config(magic_init, NULL, NULL, HOOK_FIRST); ap_hook_post_config(magic_init, NULL, NULL, AP_HOOK_FIRST);
} }
/* /*

View File

@@ -404,7 +404,7 @@ static int match_headers(request_rec *r)
static void register_hooks(void) static void register_hooks(void)
{ {
ap_hook_post_read_request(match_headers,NULL,NULL,HOOK_MIDDLE); ap_hook_post_read_request(match_headers,NULL,NULL,AP_HOOK_MIDDLE);
} }
module MODULE_VAR_EXPORT setenvif_module = module MODULE_VAR_EXPORT setenvif_module =

View File

@@ -395,9 +395,9 @@ static int gen_unique_id(request_rec *r)
static void register_hooks(void) static void register_hooks(void)
{ {
ap_hook_post_config(unique_id_global_init, NULL, NULL, HOOK_MIDDLE); ap_hook_post_config(unique_id_global_init, NULL, NULL, AP_HOOK_MIDDLE);
ap_hook_child_init(unique_id_child_init, NULL, NULL, HOOK_MIDDLE); ap_hook_child_init(unique_id_child_init, NULL, NULL, AP_HOOK_MIDDLE);
ap_hook_post_read_request(gen_unique_id, NULL, NULL, HOOK_MIDDLE); ap_hook_post_read_request(gen_unique_id, NULL, NULL, AP_HOOK_MIDDLE);
} }
module MODULE_VAR_EXPORT unique_id_module = { module MODULE_VAR_EXPORT unique_id_module = {

View File

@@ -305,7 +305,7 @@ static const command_rec cookie_log_cmds[] = {
}; };
static void register_hooks(void) static void register_hooks(void)
{ {
ap_hook_fixups(spot_cookie,NULL,NULL,HOOK_MIDDLE); ap_hook_fixups(spot_cookie,NULL,NULL,AP_HOOK_MIDDLE);
} }
module MODULE_VAR_EXPORT usertrack_module = { module MODULE_VAR_EXPORT usertrack_module = {
STANDARD20_MODULE_STUFF, STANDARD20_MODULE_STUFF,

View File

@@ -85,21 +85,21 @@
#include "http_vhost.h" #include "http_vhost.h"
#include "util_cfgtree.h" #include "util_cfgtree.h"
HOOK_STRUCT( AP_HOOK_STRUCT(
HOOK_LINK(header_parser) AP_HOOK_LINK(header_parser)
HOOK_LINK(post_config) AP_HOOK_LINK(post_config)
HOOK_LINK(open_logs) AP_HOOK_LINK(open_logs)
HOOK_LINK(child_init) AP_HOOK_LINK(child_init)
) )
IMPLEMENT_HOOK_RUN_ALL(int,header_parser,(request_rec *r),(r),OK,DECLINED) AP_IMPLEMENT_HOOK_RUN_ALL(int,header_parser,(request_rec *r),(r),OK,DECLINED)
IMPLEMENT_HOOK_VOID(post_config, AP_IMPLEMENT_HOOK_VOID(post_config,
(ap_pool_t *pconf, ap_pool_t *plog, ap_pool_t *ptemp, server_rec *s), (ap_pool_t *pconf, ap_pool_t *plog, ap_pool_t *ptemp, server_rec *s),
(pconf,plog,ptemp,s)) (pconf,plog,ptemp,s))
IMPLEMENT_HOOK_VOID(open_logs, AP_IMPLEMENT_HOOK_VOID(open_logs,
(ap_pool_t *pconf, ap_pool_t *plog, ap_pool_t *ptemp, server_rec *s), (ap_pool_t *pconf, ap_pool_t *plog, ap_pool_t *ptemp, server_rec *s),
(pconf,plog,ptemp,s)) (pconf,plog,ptemp,s))
IMPLEMENT_HOOK_VOID(child_init,(ap_pool_t *pchild, server_rec *s),(pchild,s)) AP_IMPLEMENT_HOOK_VOID(child_init,(ap_pool_t *pchild, server_rec *s),(pchild,s))
/**************************************************************** /****************************************************************
* *

View File

@@ -67,13 +67,13 @@
#include "http_config.h" #include "http_config.h"
#include "http_vhost.h" #include "http_vhost.h"
HOOK_STRUCT( AP_HOOK_STRUCT(
HOOK_LINK(pre_connection) AP_HOOK_LINK(pre_connection)
HOOK_LINK(process_connection) AP_HOOK_LINK(process_connection)
) )
IMPLEMENT_HOOK_VOID(pre_connection,(conn_rec *c),(c)) AP_IMPLEMENT_HOOK_VOID(pre_connection,(conn_rec *c),(c))
IMPLEMENT_HOOK_RUN_FIRST(int,process_connection,(conn_rec *c),(c),DECLINED) AP_IMPLEMENT_HOOK_RUN_FIRST(int,process_connection,(conn_rec *c),(c),DECLINED)
/* /*
* More machine-dependent networking gooo... on some systems, * More machine-dependent networking gooo... on some systems,