| 39 | } |
| 40 | |
| 41 | AP_DECLARE(apr_bucket *) ap_bucket_error_make(apr_bucket *b, int error, |
| 42 | const char *buf, apr_pool_t *p) |
| 43 | { |
| 44 | ap_bucket_error *h; |
| 45 | |
| 46 | h = apr_bucket_alloc(sizeof(*h), b->list); |
| 47 | h->status = error; |
| 48 | h->data = apr_pstrdup(p, buf); |
| 49 | |
| 50 | b = apr_bucket_shared_make(b, h, 0, 0); |
| 51 | b->type = &ap_bucket_type_error; |
| 52 | return b; |
| 53 | } |
| 54 | |
| 55 | AP_DECLARE(apr_bucket *) ap_bucket_error_create(int error, const char *buf, |
| 56 | apr_pool_t *p, |
no outgoing calls
no test coverage detected