You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by tr...@apache.org on 2001/04/19 14:07:51 UTC

cvs commit: httpd-2.0/modules/experimental mod_cache.c

trawick     01/04/19 05:07:51

  Modified:    modules/experimental mod_cache.c
  Log:
  get mod_cache to at least compile
  
  Revision  Changes    Path
  1.5       +3 -9      httpd-2.0/modules/experimental/mod_cache.c
  
  Index: mod_cache.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/experimental/mod_cache.c,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- mod_cache.c	2001/02/16 04:26:37	1.4
  +++ mod_cache.c	2001/04/19 12:07:50	1.5
  @@ -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 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 */
   };