From: Justin Erenkrantz Date: Thu, 30 May 2002 21:08:21 +0000 (+0000) Subject: Add macro to check for an error bucket. (Can't call it APR_BUCKET_IS_ERROR X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9715dad4bf82a07a4207ddfd095aeb5e158dbea9;p=apache 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.) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95410 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/include/http_protocol.h b/include/http_protocol.h index 08bd750195..00fbdb5281 100644 --- a/include/http_protocol.h +++ b/include/http_protocol.h @@ -666,6 +666,13 @@ struct ap_bucket_error { 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