You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by je...@apache.org on 2002/05/30 23:08:21 UTC

cvs commit: httpd-2.0/include http_protocol.h

jerenkrantz    02/05/30 14:08:21

  Modified:    include  http_protocol.h
  Log:
  Add macro to check for an error bucket.  (Can't call it APR_BUCKET_IS_ERROR
  since error bucket is private to httpd - hence the AP_ prefix.)
  
  Revision  Changes    Path
  1.80      +7 -0      httpd-2.0/include/http_protocol.h
  
  Index: http_protocol.h
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/include/http_protocol.h,v
  retrieving revision 1.79
  retrieving revision 1.80
  diff -u -r1.79 -r1.80
  --- http_protocol.h	10 May 2002 15:08:59 -0000	1.79
  +++ http_protocol.h	30 May 2002 21:08:21 -0000	1.80
  @@ -667,6 +667,13 @@
   AP_DECLARE_DATA extern const apr_bucket_type_t ap_bucket_type_error;
   
   /**
  + * Determine if a bucket is an error bucket
  + * @param e The bucket to inspect
  + * @return true or false
  + */
  +#define AP_BUCKET_IS_ERROR(e)         (e->type == &ap_bucket_type_error)
  +
  +/**
    * Make the bucket passed in an error bucket
    * @param b The bucket to make into an error bucket
    * @param error The HTTP error code to put in the bucket.