]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
add AP_ prefix to *HOOK* macros
authorDoug MacEachern <dougm@apache.org>
Wed, 26 Apr 2000 07:14:39 +0000 (07:14 +0000)
committerDoug MacEachern <dougm@apache.org>
Wed, 26 Apr 2000 07:14:39 +0000 (07:14 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85045 13f79535-47bb-0310-9956-ffa450edef68

35 files changed:
include/http_config.h
include/http_connection.h
include/http_protocol.h
include/http_request.h
modules/aaa/mod_access.c
modules/aaa/mod_auth.c
modules/aaa/mod_auth_anon.c
modules/aaa/mod_auth_db.c
modules/aaa/mod_auth_dbm.c
modules/aaa/mod_auth_digest.c
modules/cache/mod_file_cache.c
modules/echo/mod_echo.c
modules/experimental/mod_example.c
modules/generators/mod_cgid.c
modules/http/http_core.c
modules/http/http_protocol.c
modules/http/http_request.c
modules/http/mod_mime.c
modules/loggers/mod_log_config.c
modules/mappers/mod_alias.c
modules/mappers/mod_negotiation.c
modules/mappers/mod_rewrite.c
modules/mappers/mod_speling.c
modules/mappers/mod_userdir.c
modules/mappers/mod_vhost_alias.c
modules/metadata/mod_cern_meta.c
modules/metadata/mod_env.c
modules/metadata/mod_expires.c
modules/metadata/mod_headers.c
modules/metadata/mod_mime_magic.c
modules/metadata/mod_setenvif.c
modules/metadata/mod_unique_id.c
modules/metadata/mod_usertrack.c
server/config.c
server/connection.c

index 3121e69b20ea830760074a38499b3c025f401e83..d2ef076e786f68a55e92b8b199803c8de3ed160f 100644 (file)
@@ -413,12 +413,12 @@ CORE_EXPORT(const char *) ap_handle_command(cmd_parms *parms, void *config, cons
 #endif
 
   /* Hooks */
-DECLARE_HOOK(int,header_parser,(request_rec *))
-DECLARE_HOOK(void,post_config,
+AP_DECLARE_HOOK(int,header_parser,(request_rec *))
+AP_DECLARE_HOOK(void,post_config,
             (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))
-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
 }
index e4891f7360eda9e17976d1119abafccb83ba039c..7b237c793f1a9dca80d164c9b6c2c21de0aa0874 100644 (file)
@@ -73,8 +73,8 @@ int ap_process_http_connection(conn_rec *);
 #endif
 
   /* Hooks */
-DECLARE_HOOK(void,pre_connection,(conn_rec *))
-DECLARE_HOOK(int,process_connection,(conn_rec *))
+AP_DECLARE_HOOK(void,pre_connection,(conn_rec *))
+AP_DECLARE_HOOK(int,process_connection,(conn_rec *))
 
 #ifdef __cplusplus
 }
index 79fe7104ab14d60ca63d6fb11eb111a471595530..ea1b59ab4bcd3f27428053088119cfff8ea61bed 100644 (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,
    *                  and not run during any subrequests.
    */
-DECLARE_HOOK(int,post_read_request,(request_rec *))
-DECLARE_HOOK(int,log_transaction,(request_rec *))
-DECLARE_HOOK(const char *,http_method,(const request_rec *))
-DECLARE_HOOK(unsigned short,default_port,(const request_rec *))
+AP_DECLARE_HOOK(int,post_read_request,(request_rec *))
+AP_DECLARE_HOOK(int,log_transaction,(request_rec *))
+AP_DECLARE_HOOK(const char *,http_method,(const request_rec *))
+AP_DECLARE_HOOK(unsigned short,default_port,(const request_rec *))
 
 #ifdef __cplusplus
 }
index 42b200db6af2856bf223c1154af55056599aaf36..57630c15d194813d599c8b49104259d6db55c9f5 100644 (file)
@@ -114,12 +114,12 @@ 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 *))
+AP_DECLARE_HOOK(int,translate_name,(request_rec *))
+AP_DECLARE_HOOK(int,check_user_id,(request_rec *))
+AP_DECLARE_HOOK(int,fixups,(request_rec *))
+AP_DECLARE_HOOK(int,type_checker,(request_rec *))
+AP_DECLARE_HOOK(int,access_checker,(request_rec *))
+AP_DECLARE_HOOK(int,auth_checker,(request_rec *))
 
 #ifdef __cplusplus
 }
index afa259cf680b7d4d7f8ec4b2c81e792e88c6a88f..78c669f66f52618f8fbb6eae9818260564e4d4a6 100644 (file)
@@ -392,7 +392,7 @@ static int check_dir_access(request_rec *r)
 
 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 =
index c985f52149b1e0cc00ed44c869945ba56fdb62e3..4a6de2f02d49f510c3bf0774f819f8e8c097b092 100644 (file)
@@ -317,8 +317,8 @@ static int check_user_access(request_rec *r)
 
 static void register_hooks(void)
 {
-    ap_hook_check_user_id(authenticate_basic_user,NULL,NULL,HOOK_MIDDLE);
-    ap_hook_auth_checker(check_user_access,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,AP_HOOK_MIDDLE);
 }
 
 module MODULE_VAR_EXPORT auth_module =
index 44cea729309463ca46bc7982861de2d89e092bbc..3a786d007f506ece3835514df946ba67e91a9538 100644 (file)
@@ -291,8 +291,8 @@ static int check_anon_access(request_rec *r)
 }
 static void register_hooks(void)
 {
-    ap_hook_check_user_id(anon_authenticate_basic_user,NULL,NULL,HOOK_MIDDLE);
-    ap_hook_auth_checker(check_anon_access,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,AP_HOOK_MIDDLE);
 }
 
 module MODULE_VAR_EXPORT auth_anon_module =
index 862e3d95df0063ac12de30cd50dbd846281498ed..cbc263376e09c3e90a21186a8d9b61829f9d183d 100644 (file)
@@ -400,8 +400,8 @@ static int db_check_auth(request_rec *r)
 
 static void register_hooks(void)
 {
-    ap_hook_check_user_id(db_authenticate_basic_user,NULL,NULL,HOOK_MIDDLE);
-    ap_hook_auth_checker(db_check_auth,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,AP_HOOK_MIDDLE);
 }
 
 module auth_db_module =
index 7372fdc3220510bb25a51b2e7d731a3f376e69bb..d9e304bca2998801850d9bb76708144638fbc93b 100644 (file)
@@ -313,8 +313,8 @@ static int dbm_check_auth(request_rec *r)
 
 static void register_hooks(void)
 {
-    ap_hook_check_user_id(dbm_authenticate_basic_user, NULL, NULL, HOOK_MIDDLE);
-    ap_hook_auth_checker(dbm_check_auth, 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, AP_HOOK_MIDDLE);
 }
 
 module auth_dbm_module =
index 582c9da83efb0cb4ff0e0a823e5a585008906104..0d5671b3811ffcfc4d34b8834c397f90a7ca8bc3 100644 (file)
@@ -1871,9 +1871,9 @@ static void register_hooks(void)
 
     ap_hook_post_config(initialize_module, NULL, cfgPost, 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_auth_checker(digest_check_auth, NULL, NULL, HOOK_MIDDLE);
-    ap_hook_fixups(add_auth_info, 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, AP_HOOK_MIDDLE);
+    ap_hook_fixups(add_auth_info, NULL, NULL, AP_HOOK_MIDDLE);
 }
 
 module MODULE_VAR_EXPORT auth_digest_module =
index 81e269dc4c28b9f6044c7c928c788fe46ed2f858..c99f32f7b30cefcea2caecd35f1b44baa7ff426a 100644 (file)
@@ -529,13 +529,13 @@ static command_rec mmap_cmds[] =
 static void register_hooks(void)
 {
     /* static const char* const aszPre[]={"http_core.c",NULL}; */
-    /* ap_hook_pre_config(pre_config,NULL,NULL,HOOK_MIDDLE); */
-    ap_hook_post_config(file_cache_post_config, NULL, NULL, HOOK_MIDDLE);
-    ap_hook_translate_name(file_cache_xlat, 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, AP_HOOK_MIDDLE);
+    ap_hook_translate_name(file_cache_xlat, NULL, NULL, AP_HOOK_MIDDLE);
     /* This trick doesn't work apparently because the translate hooks
        are single shot. If the core_hook returns OK, then our hook is 
        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); 
     */
 
 };
index 57b9e342809996b1b2d2533674e1707c0472de1a..752a0dd1e50d08f321ff0abbad0c87a79e436647 100644 (file)
@@ -118,7 +118,7 @@ static const command_rec echo_cmds[] = {
 
 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 = {
index 8d2e3244b2fd6f41b0ad989bd0a09956234fe683..7d588e73b971bd52e5ff91e5db192a53750eb36d 100644 (file)
@@ -1119,9 +1119,9 @@ static const handler_rec example_handlers[] =
  *                 before this module.
  * successors   -> a list of modules whose calls to this hook must come 
  *                 after this module.
- * position     -> The relative position of this module.  One of HOOK_FIRST,
- *                 HOOK_MIDDLE, or HOOK_LAST.  Most modules will use
- *                 HOOK_MIDDLE.  If multiple modules use the same relative
+ * position     -> The relative position of this module.  One of AP_HOOK_FIRST,
+ *                 AP_HOOK_MIDDLE, or AP_HOOK_LAST.  Most modules will use
+ *                 AP_HOOK_MIDDLE.  If multiple modules use the same relative
  *                 position, Apache will determine which to call first.
  *                 If your module relies on another module to run first,
  *                 or another module running after yours, use the 
@@ -1130,28 +1130,28 @@ static const handler_rec example_handlers[] =
 static void register_hooks(void)
 {
     /* 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 */
-    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 */
-    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* */
-    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 */
-    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 */
-    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 */
-    ap_hook_fixups(example_fixer_upper, NULL, NULL, HOOK_MIDDLE);   
+    ap_hook_fixups(example_fixer_upper, NULL, NULL, AP_HOOK_MIDDLE);   
     /* [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 */
-    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 */
-    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 */
     ap_hook_post_read_request(example_post_read_request, NULL, NULL, 
-                              HOOK_MIDDLE);
+                              AP_HOOK_MIDDLE);
 }
 
 /*--------------------------------------------------------------------------*/
index ffd08003d7764835551951cb07d9ee002ee1d44d..22275159c1d418a35dbc9fcde3b709cc0a87af54 100644 (file)
@@ -995,7 +995,7 @@ static const handler_rec cgid_handlers[] =
 
 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 = { 
index fb9f343131148106d137034f76e90a13e7e6f616..7adc2eb1c71b4cfbbb0f5d81e61216ad4bf3482a 100644 (file)
@@ -2519,15 +2519,15 @@ static unsigned short core_port(const request_rec *r)
 
 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,
-                              HOOK_REALLY_LAST);
-    ap_hook_http_method(core_method,NULL,NULL,HOOK_REALLY_LAST);
-    ap_hook_default_port(core_port,NULL,NULL,HOOK_REALLY_LAST);
-    ap_hook_open_logs(core_open_logs,NULL,NULL,HOOK_MIDDLE);
+                              AP_HOOK_REALLY_LAST);
+    ap_hook_http_method(core_method,NULL,NULL,AP_HOOK_REALLY_LAST);
+    ap_hook_default_port(core_port,NULL,NULL,AP_HOOK_REALLY_LAST);
+    ap_hook_open_logs(core_open_logs,NULL,NULL,AP_HOOK_MIDDLE);
     /* FIXME: I suspect we can eliminate the need for these - Ben */
-    ap_hook_type_checker(do_nothing,NULL,NULL,HOOK_REALLY_LAST);
-    ap_hook_access_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,AP_HOOK_REALLY_LAST);
 }
 
 API_VAR_EXPORT module core_module = {
index 77aecaf2c05585d76dd31bf299979361dd2dde99..aaca570fbbc18064f85356a74a3ae0cac736521b 100644 (file)
 #include "mpm_status.h"
 #include <stdarg.h>
 
-HOOK_STRUCT(
-           HOOK_LINK(post_read_request)
-           HOOK_LINK(log_transaction)
-           HOOK_LINK(http_method)
-           HOOK_LINK(default_port)
+AP_HOOK_STRUCT(
+           AP_HOOK_LINK(post_read_request)
+           AP_HOOK_LINK(log_transaction)
+           AP_HOOK_LINK(http_method)
+           AP_HOOK_LINK(default_port)
 )
 
 #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);
 }
 
-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)
-IMPLEMENT_HOOK_RUN_FIRST(const char *,http_method,(const request_rec *r),(r),
+AP_IMPLEMENT_HOOK_RUN_ALL(int,post_read_request,(request_rec *r),(r),OK,DECLINED)
+AP_IMPLEMENT_HOOK_RUN_ALL(int,log_transaction,(request_rec *r),(r),OK,DECLINED)
+AP_IMPLEMENT_HOOK_RUN_FIRST(const char *,http_method,(const request_rec *r),(r),
                         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)
index 8e52484af8ffd8831dfec354c006434ff71a7faa..e1dda872de8187c04222156ed164afa664201f88 100644 (file)
 #include "http_main.h"
 #include "apr_fnmatch.h"
 
-HOOK_STRUCT(
-           HOOK_LINK(translate_name)
-           HOOK_LINK(check_user_id)
-           HOOK_LINK(fixups)
-           HOOK_LINK(type_checker)
-           HOOK_LINK(access_checker)
-           HOOK_LINK(auth_checker)
+AP_HOOK_STRUCT(
+           AP_HOOK_LINK(translate_name)
+           AP_HOOK_LINK(check_user_id)
+           AP_HOOK_LINK(fixups)
+           AP_HOOK_LINK(type_checker)
+           AP_HOOK_LINK(access_checker)
+           AP_HOOK_LINK(auth_checker)
 )
 
-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)
-IMPLEMENT_HOOK_RUN_ALL(int,fixups,(request_rec *r),(r),OK,DECLINED)
-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)
-IMPLEMENT_HOOK_RUN_FIRST(int,auth_checker,(request_rec *r),(r),DECLINED)
+AP_IMPLEMENT_HOOK_RUN_FIRST(int,translate_name,(request_rec *r),(r),DECLINED)
+AP_IMPLEMENT_HOOK_RUN_FIRST(int,check_user_id,(request_rec *r),(r),DECLINED)
+AP_IMPLEMENT_HOOK_RUN_ALL(int,fixups,(request_rec *r),(r),OK,DECLINED)
+AP_IMPLEMENT_HOOK_RUN_FIRST(int,type_checker,(request_rec *r),(r),DECLINED)
+AP_IMPLEMENT_HOOK_RUN_ALL(int,access_checker,(request_rec *r),(r),OK,DECLINED)
+AP_IMPLEMENT_HOOK_RUN_FIRST(int,auth_checker,(request_rec *r),(r),DECLINED)
 
 /*****************************************************************
  *
index 97102a69e5b2fe1307d0b31e8c3fefec0030f58e..795de4dff0c2f69207baf6cc17268baf351978bd 100644 (file)
@@ -737,8 +737,8 @@ static int find_ct(request_rec *r)
 
 static void register_hooks(void)
 {
-    ap_hook_type_checker(find_ct,NULL,NULL,HOOK_MIDDLE);
-    ap_hook_post_config(mime_post_config,NULL,NULL,HOOK_MIDDLE);
+    ap_hook_type_checker(find_ct,NULL,NULL,AP_HOOK_MIDDLE);
+    ap_hook_post_config(mime_post_config,NULL,NULL,AP_HOOK_MIDDLE);
 }
 
 module MODULE_VAR_EXPORT mime_module = {
index f8cb50f11fc3d6eb772ae4a5c7121c02442e2e2e..07271899414ef67c5180504f3e60090911118003 100644 (file)
@@ -1139,8 +1139,8 @@ static void flush_all_logs(server_rec *s)
 
 static void register_hooks(void)
 {
-    ap_hook_open_logs(init_config_log,NULL,NULL,HOOK_MIDDLE);
-    ap_hook_log_transaction(multi_log_transaction,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,AP_HOOK_MIDDLE);
 }
 
 module MODULE_VAR_EXPORT config_log_module =
index af02eaaee3f97623c96f93c7cf686d7d016eac77..ce2f2a338c9171b6a20283e52b5afbc28d0bda58 100644 (file)
@@ -401,8 +401,8 @@ static void register_hooks(void)
 {
     static const char * const aszPre[]={ "mod_userdir.c",NULL };
 
-    ap_hook_translate_name(translate_alias_redir,aszPre,NULL,HOOK_MIDDLE);
-    ap_hook_fixups(fixup_redir,NULL,NULL,HOOK_MIDDLE);
+    ap_hook_translate_name(translate_alias_redir,aszPre,NULL,AP_HOOK_MIDDLE);
+    ap_hook_fixups(fixup_redir,NULL,NULL,AP_HOOK_MIDDLE);
 }
 
 module MODULE_VAR_EXPORT alias_module =
index 994df48c03814e02c3dc5cbaaf0287230862c65a..e3aa38277b82c351e3ce9b886ee5284839a65cb6 100644 (file)
@@ -2739,8 +2739,8 @@ static const handler_rec negotiation_handlers[] =
 
 static void register_hooks(void)
 {
-    ap_hook_fixups(fix_encoding,NULL,NULL,HOOK_MIDDLE);
-    ap_hook_type_checker(handle_multi,NULL,NULL,HOOK_FIRST);
+    ap_hook_fixups(fix_encoding,NULL,NULL,AP_HOOK_MIDDLE);
+    ap_hook_type_checker(handle_multi,NULL,NULL,AP_HOOK_FIRST);
 }
 
 module MODULE_VAR_EXPORT negotiation_module =
index 03a638320d2c70d095488084d45bbfcb61abe005..9a3ebc96311c908d78a6f919acaa8e07df4bb96b 100644 (file)
@@ -202,12 +202,12 @@ static const handler_rec handler_table[] = {
 
 static void register_hooks(void)
 {
-    ap_hook_post_config(init_module,NULL,NULL,HOOK_MIDDLE);
-    ap_hook_child_init(init_child,NULL,NULL,HOOK_MIDDLE);
+    ap_hook_post_config(init_module,NULL,NULL,AP_HOOK_MIDDLE);
+    ap_hook_child_init(init_child,NULL,NULL,AP_HOOK_MIDDLE);
 
-    ap_hook_fixups(hook_fixup,NULL,NULL,HOOK_FIRST);
-    ap_hook_translate_name(hook_uri2file,NULL,NULL,HOOK_FIRST);
-    ap_hook_type_checker(hook_mimetype,NULL,NULL,HOOK_MIDDLE);
+    ap_hook_fixups(hook_fixup,NULL,NULL,AP_HOOK_FIRST);
+    ap_hook_translate_name(hook_uri2file,NULL,NULL,AP_HOOK_FIRST);
+    ap_hook_type_checker(hook_mimetype,NULL,NULL,AP_HOOK_MIDDLE);
 }
 
     /* the main config structure */
index 03b6e675e60ef4f2a456e79280315288e6547467..29faa63529e6fbd277146280977a24f0cc32067b 100644 (file)
@@ -551,7 +551,7 @@ static int check_speling(request_rec *r)
 
 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 =
index 2a087886fd2a3aa84205e2468ee22ede1113c150..f54fd4400ec2daf507772d8a0f5b1f9779de8732 100644 (file)
@@ -342,7 +342,7 @@ static void register_hooks(void)
 {
     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 = {
index 1eddd82ad2ca935d293d783ace69983b5b1cfa7c..c5d37832145c095f65a338938e23c0d84531c082 100644 (file)
@@ -460,7 +460,7 @@ static int mva_translate(request_rec *r)
 
 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 =
index 339937ed80526b2d81aa58d5fdc1134325e233f2..cface066a0f659378a59324fe389951ad41c3535 100644 (file)
@@ -379,7 +379,7 @@ static int add_cern_meta_data(request_rec *r)
 }
 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 =
 {
index fa434ddaef46c99fd64dab54f6d403b8b3b55eda..da52b08635c3fc7fa6c21d35d16cbdffe3b90cf7 100644 (file)
@@ -254,7 +254,7 @@ static int fixup_env_module(request_rec *r)
 
 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);
 }
 
 
index 49f8f0f530e1a18e18fd828c8f22a60d0eb737ea..1a870601485885ab3a4a1d8be2ae3c49549c2066 100644 (file)
@@ -494,7 +494,7 @@ static int add_expires(request_rec *r)
 
 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 =
index d9b8057ae3223b003603e2d13e944ceb258c28bb..a311345ba6af3d580d18e76538037761eee72dbf 100644 (file)
@@ -244,7 +244,7 @@ static int fixup_headers(request_rec *r)
 }
 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 =
 {
index fdcc0cede4a3c46466fdf35a4d756817a4120aae..21cfc16c2821728f08d52a0753312ae25fd39865 100644 (file)
@@ -2487,8 +2487,8 @@ static void register_hooks(void)
 
     /* 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_post_config(magic_init, NULL, NULL, HOOK_FIRST);
+    ap_hook_type_checker(magic_find_ct, aszPre, NULL, AP_HOOK_MIDDLE);
+    ap_hook_post_config(magic_init, NULL, NULL, AP_HOOK_FIRST);
 }
 
 /*
index 7ce032d9363cfee336398c7991c955fb646d2720..13a63170cf3d086cec96d5423e7ffe8ccafb8cff 100644 (file)
@@ -404,7 +404,7 @@ static int match_headers(request_rec *r)
 
 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 =
index b37010e45c816a339145ceae11fb1d7043aea470..677e3b2bf18a3a296d6323614eae37acaf880430 100644 (file)
@@ -395,9 +395,9 @@ static int gen_unique_id(request_rec *r)
 
 static void register_hooks(void)
 {
-    ap_hook_post_config(unique_id_global_init, NULL, NULL, HOOK_MIDDLE);
-    ap_hook_child_init(unique_id_child_init, NULL, NULL, HOOK_MIDDLE);
-    ap_hook_post_read_request(gen_unique_id, 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, AP_HOOK_MIDDLE);
+    ap_hook_post_read_request(gen_unique_id, NULL, NULL, AP_HOOK_MIDDLE); 
 }
 
 module MODULE_VAR_EXPORT unique_id_module = {
index 3ec22492d27a7e0966f718cf26be60cb03462fef..7698f24c861acab0f1bbe02ef5fe2477eae0b8a7 100644 (file)
@@ -305,7 +305,7 @@ static const command_rec cookie_log_cmds[] = {
 };
 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 = {
     STANDARD20_MODULE_STUFF,
index 1f0b90cb2641681d65bd3e05e43fdf8a2a96d1ac..7b9e70ce1da8c77179e04d29401e6f4787efb045 100644 (file)
 #include "http_vhost.h"
 #include "util_cfgtree.h"
 
-HOOK_STRUCT(
-           HOOK_LINK(header_parser)
-           HOOK_LINK(post_config)
-           HOOK_LINK(open_logs)
-           HOOK_LINK(child_init)
+AP_HOOK_STRUCT(
+           AP_HOOK_LINK(header_parser)
+           AP_HOOK_LINK(post_config)
+           AP_HOOK_LINK(open_logs)
+           AP_HOOK_LINK(child_init)
 )
 
-IMPLEMENT_HOOK_RUN_ALL(int,header_parser,(request_rec *r),(r),OK,DECLINED)
-IMPLEMENT_HOOK_VOID(post_config,
+AP_IMPLEMENT_HOOK_RUN_ALL(int,header_parser,(request_rec *r),(r),OK,DECLINED)
+AP_IMPLEMENT_HOOK_VOID(post_config,
                    (ap_pool_t *pconf, ap_pool_t *plog, ap_pool_t *ptemp, server_rec *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),
                    (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))
 
 /****************************************************************
  *
index 6113d19f9cef0775b117eb9a3e498bf32fc4937f..eeffd8d4e7c235aa08e8359a73c89bea645524ba 100644 (file)
 #include "http_config.h"
 #include "http_vhost.h"
 
-HOOK_STRUCT(
-           HOOK_LINK(pre_connection)
-           HOOK_LINK(process_connection)
+AP_HOOK_STRUCT(
+           AP_HOOK_LINK(pre_connection)
+           AP_HOOK_LINK(process_connection)
 )
 
-IMPLEMENT_HOOK_VOID(pre_connection,(conn_rec *c),(c))
-IMPLEMENT_HOOK_RUN_FIRST(int,process_connection,(conn_rec *c),(c),DECLINED)
+AP_IMPLEMENT_HOOK_VOID(pre_connection,(conn_rec *c),(c))
+AP_IMPLEMENT_HOOK_RUN_FIRST(int,process_connection,(conn_rec *c),(c),DECLINED)
 
 /*
  * More machine-dependent networking gooo... on some systems,