]> granicus.if.org Git - apache/commitdiff
Add macro to check for an error bucket. (Can't call it APR_BUCKET_IS_ERROR
authorJustin Erenkrantz <jerenkrantz@apache.org>
Thu, 30 May 2002 21:08:21 +0000 (21:08 +0000)
committerJustin Erenkrantz <jerenkrantz@apache.org>
Thu, 30 May 2002 21:08:21 +0000 (21:08 +0000)
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

index 08bd75019558bb3143ae6d5e0ff404c52c449f84..00fbdb528105a3a670c1695e30b1609f1c0ab14e 100644 (file)
@@ -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