]> granicus.if.org Git - apache/commitdiff
get mod_cache to at least compile
authorJeff Trawick <trawick@apache.org>
Thu, 19 Apr 2001 12:07:50 +0000 (12:07 +0000)
committerJeff Trawick <trawick@apache.org>
Thu, 19 Apr 2001 12:07:50 +0000 (12:07 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88893 13f79535-47bb-0310-9956-ffa450edef68

modules/experimental/mod_cache.c

index 3fd54e45a39a87bd28feb46943be555694657051..49871abe583a7da480657f513ac9aff10da3a346 100644 (file)
@@ -71,7 +71,7 @@
 #include "mod_cache.h"
 #include "apr_hooks.h"
 
-module MODULE_VAR_EXPORT cache_module;
+module AP_DECLARE_DATA cache_module;
 
 APR_HOOK_STRUCT(
             APR_HOOK_LINK(serve_cache)
@@ -109,22 +109,16 @@ static int cache_filter(ap_filter_t *f, apr_bucket_brigade *bb)
 
 static void cache_register_hook(apr_pool_t *p)
 {
+    ap_hook_handler(cache_handler, NULL, NULL, APR_HOOK_MIDDLE);
     ap_register_output_filter("CACHE", cache_filter, AP_FTYPE_HTTP_HEADER);
 }
 
-static const handler_rec cache_handlers[] =
-{
-    {"*/*", cache_handler},
-    {NULL}
-};
-
-module MODULE_VAR_EXPORT cache_module = {
+module AP_DECLARE_DATA cache_module = {
     STANDARD20_MODULE_STUFF,
     NULL,                      /* create per-directory config structure */
     NULL,                      /* merge per-directory config structures */
     NULL,                      /* create per-server config structure */
     NULL,                      /* merge per-server config structures */
     NULL,                      /* command apr_table_t */
-    cache_handlers,            /* handlers */
     cache_register_hook                /* register hooks */
 };