diff options
author | gstein <gstein@13f79535-47bb-0310-9956-ffa450edef68> | 2001-06-07 10:13:37 +0000 |
---|---|---|
committer | gstein <gstein@13f79535-47bb-0310-9956-ffa450edef68> | 2001-06-07 10:13:37 +0000 |
commit | 6539ff054aa2cdfb5bdfe834126b11b1ce19582d (patch) | |
tree | bda7f813e28836cf6f845ac5fe8d63ab114a8e84 /buckets/apr_buckets.c | |
parent | 9b6f7dc61532fcfd7a89da92d7409c6204cbb612 (diff) | |
download | libapr-util-6539ff054aa2cdfb5bdfe834126b11b1ce19582d.tar.gz |
*) Add apr_bucket_setaside_noop to use for buckets that do not require a
setaside function. It simply returns APR_SUCCESS.
- adjust the EOS, FLUSH, IMMORTAL, and HEAP buckets to use _noop.
*) Make the setaside() function take a pool to define the (new) lifetime for
the bucket's data.
- Adjust the apr_bucket_setaside() macro.
- Adjust the apr_bucket_setaside_notimpl() and transient_setaside()
functions.
- Pass the additional parameter in ap_save_brigade()
*) Update docs for setaside()
*) Minor nit with macros in apr_buckets.h: add parens for binding safety.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@58288 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'buckets/apr_buckets.c')
-rw-r--r-- | buckets/apr_buckets.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/buckets/apr_buckets.c b/buckets/apr_buckets.c index 12fc8727..dfa73ad8 100644 --- a/buckets/apr_buckets.c +++ b/buckets/apr_buckets.c @@ -54,7 +54,14 @@ #include "apr_buckets.h" -APU_DECLARE_NONSTD(apr_status_t) apr_bucket_setaside_notimpl(apr_bucket *data) +APU_DECLARE_NONSTD(apr_status_t) apr_bucket_setaside_noop(apr_bucket *data, + apr_pool_t *pool) +{ + return APR_SUCCESS; +} + +APU_DECLARE_NONSTD(apr_status_t) apr_bucket_setaside_notimpl(apr_bucket *data, + apr_pool_t *pool) { return APR_ENOTIMPL; } |