summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorRoy T. Fielding <fielding@apache.org>1999-08-26 19:09:12 +0200
committerRoy T. Fielding <fielding@apache.org>1999-08-26 19:09:12 +0200
commit9f817aa324a796f4ca597139167028514a64e1dd (patch)
tree0c51dd0ee7d6b6ce688739725f373dfba089ccb9 /modules
parentAdd prototype for ap_select on OS/2 (diff)
downloadapache2-9f817aa324a796f4ca597139167028514a64e1dd.tar.xz
apache2-9f817aa324a796f4ca597139167028514a64e1dd.zip
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@83786 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules')
-rw-r--r--modules/filters/mod_include.c14
-rw-r--r--modules/generators/mod_autoindex.c15
2 files changed, 8 insertions, 21 deletions
diff --git a/modules/filters/mod_include.c b/modules/filters/mod_include.c
index 3ee96db83b..4d7df16210 100644
--- a/modules/filters/mod_include.c
+++ b/modules/filters/mod_include.c
@@ -2464,23 +2464,21 @@ static const handler_rec includes_handlers[] =
module MODULE_VAR_EXPORT includes_module =
{
- STANDARD_MODULE_STUFF,
- NULL, /* initializer */
+ STANDARD20_MODULE_STUFF,
+ NULL, /* pre_config */
+ NULL, /* post_config */
+ NULL, /* open_logs */
+ NULL, /* child initializer */
create_includes_dir_config, /* dir config creater */
NULL, /* dir merger --- default is to override */
NULL, /* server config */
NULL, /* merge server config */
includes_cmds, /* command table */
includes_handlers, /* handlers */
- NULL, /* filename translation */
- NULL, /* check_user_id */
NULL, /* check auth */
NULL, /* check access */
NULL, /* type_checker */
NULL, /* fixups */
NULL, /* logger */
- NULL, /* header parser */
- NULL, /* child_init */
- NULL, /* child_exit */
- NULL /* post read-request */
+ NULL /* register hooks */
};
diff --git a/modules/generators/mod_autoindex.c b/modules/generators/mod_autoindex.c
index 9c28dc4086..99b2c88d9b 100644
--- a/modules/generators/mod_autoindex.c
+++ b/modules/generators/mod_autoindex.c
@@ -1651,23 +1651,12 @@ static const handler_rec autoindex_handlers[] =
module MODULE_VAR_EXPORT autoindex_module =
{
- STANDARD_MODULE_STUFF,
- NULL, /* initializer */
+ STANDARD20_MODULE_STUFF,
create_autoindex_config, /* dir config creater */
merge_autoindex_configs, /* dir merger --- default is to override */
NULL, /* server config */
NULL, /* merge server config */
autoindex_cmds, /* command table */
autoindex_handlers, /* handlers */
- NULL, /* filename translation */
- NULL, /* check_user_id */
- NULL, /* check auth */
- NULL, /* check access */
- NULL, /* type_checker */
- NULL, /* fixups */
- NULL, /* logger */
- NULL, /* header parser */
- NULL, /* child_init */
- NULL, /* child_exit */
- NULL /* post read-request */
+ NULL /* register hooks */
};