[prev in list] [next in list] [prev in thread] [next in thread] 

List:       dav-cvs
Subject:    [dav-checkins] CVS: mod_dav dav_fs_repos.c
From:       Greg Stein (CVS user) <gjscvs () nebula ! lyra ! org>
Date:       2000-05-28 10:49:03
[Download RAW message or body]

gjscvs      00/05/28 03:49:02

  Modified:    .        dav_fs_repos.c
  Log:
  add some stuff to assist with debugging GET handling in mod_dav
  
  Revision  Changes    Path
  1.60      +14 -3     mod_dav/dav_fs_repos.c
  
  Index: dav_fs_repos.c
  ===================================================================
  RCS file: /home/cvsroot/mod_dav/dav_fs_repos.c,v
  retrieving revision 1.59
  retrieving revision 1.60
  diff -u -r1.59 -r1.60
  --- dav_fs_repos.c	2000/05/27 04:50:58	1.59
  +++ dav_fs_repos.c	2000/05/28 10:49:02	1.60
  @@ -22,12 +22,17 @@
   
   #include "httpd.h"
   #include "http_log.h"
  -#include "http_protocol.h"	/* for dav_fs_set_headers */
  +#include "http_protocol.h"	/* for ap_set_* (in dav_fs_set_headers) */
  +#include "http_request.h"       /* for ap_update_mtime() */
   
   #include "mod_dav.h"
   #include "dav_fs_repos.h"
   
   
  +/* to assist in debugging mod_dav's GET handling */
  +#define DEBUG_GET_HANDLER       0
  +#define DEBUG_PATHNAME_STYLE    0
  +
   #define DAV_FS_COPY_BLOCKSIZE	16384	/* copy 16k at a time */
   
   /* context needed to identify a resource */
  @@ -773,7 +778,7 @@
   				      const dav_resource *resource)
   {
       /* ### this function isn't really used since we have a get_pathname */
  -#if 0
  +#if DEBUG_GET_HANDLER
       if (!resource->exists)
   	return NULL;
   
  @@ -798,12 +803,14 @@
       return NULL;
   }
   
  +#if DEBUG_PATHNAME_STYLE
   static const char * dav_fs_get_pathname(
       const dav_resource *resource,
       void **free_handle_p)
   {
       return resource->info->pathname;
   }
  +#endif
   
   static void dav_fs_free_file(void *free_handle)
   {
  @@ -1513,7 +1520,7 @@
   
   static const dav_hooks_repository dav_hooks_repository_fs =
   {
  -    0, /* special GET handling not required */
  +    DEBUG_GET_HANDLER,   /* normally: special GET handling not required */
       dav_fs_get_resource,
       dav_fs_get_parent_resource,
       dav_fs_is_same_resource,
  @@ -1524,7 +1531,11 @@
       dav_fs_write_stream,
       dav_fs_seek_stream,
       dav_fs_set_headers,
  +#if DEBUG_PATHNAME_STYLE
       dav_fs_get_pathname,
  +#else
  +    0,
  +#endif
       dav_fs_free_file,
       dav_fs_create_collection,
       dav_fs_copy_resource,
  
  
  

_______________________________________________
dav-checkins maillist  -  dav-checkins@lyra.org
http://dav.lyra.org/mailman/listinfo/dav-checkins

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic