martin 98/08/31 06:50:05
Modified: src/modules/example mod_example.c Log: Add conditionals around the newer module hooks. Since mod_example is often taken as a starting point for module writers, it's best to keep as much flexibility in here as possible. FIXME: The execution order of the hooks is currently incomplete: the server_create / directory_create hooks are not mentioned in the current numbering scheme. Obtained from: mod_php3.c (current PHP3-3.0.4-dev) Revision Changes Path 1.32 +8 -0 apache-1.3/src/modules/example/mod_example.c Index: mod_example.c =================================================================== RCS file: /home/cvs/apache-1.3/src/modules/example/mod_example.c,v retrieving revision 1.31 retrieving revision 1.32 diff -u -r1.31 -r1.32 --- mod_example.c 1998/06/14 21:10:25 1.31 +++ mod_example.c 1998/08/31 13:50:04 1.32 @@ -1134,8 +1134,16 @@ example_type_checker, /* [7] MIME type checker/setter */ example_fixer_upper, /* [8] fixups */ example_logger, /* [10] logger */ +#if MODULE_MAGIC_NUMBER >= 19970103 example_header_parser, /* [3] header parser */ +#endif +#if MODULE_MAGIC_NUMBER >= 19970719 example_child_init, /* process initializer */ +#endif +#if MODULE_MAGIC_NUMBER >= 19970728 example_child_exit, /* process exit/cleanup */ +#endif +#if MODULE_MAGIC_NUMBER >= 19970902 example_post_read_request /* [1] post read_request handling */ +#endif };