From 6e02b15f7a1d53166f1116f84735267d38a52351 Mon Sep 17 00:00:00 2001 From: Justin Erenkrantz Date: Thu, 30 May 2002 21:08:21 +0000 Subject: [PATCH] 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 --- include/http_protocol.h | 7 +++++++ 1 file changed, 7 insertions(+) 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 -- 2.50.1