Commit 9715dad4 authored by Justin Erenkrantz's avatar Justin Erenkrantz
Browse files

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
parent 244fc038
Loading
Loading
Loading
Loading
+7 −0
Changes for include/http_protocol.h: 7 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -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