diff options
author | stoddard <stoddard@13f79535-47bb-0310-9956-ffa450edef68> | 2001-08-03 14:21:52 +0000 |
---|---|---|
committer | stoddard <stoddard@13f79535-47bb-0310-9956-ffa450edef68> | 2001-08-03 14:21:52 +0000 |
commit | 340dd46dd5f752316402355e0cbe931278b255c2 (patch) | |
tree | c6112f4a0af819b5fc80a175d1c7aec995c5065f /buckets/apr_buckets_mmap.c | |
parent | 3194239e394d69fb7c9eac6b78d970708e518821 (diff) | |
download | libapr-util-340dd46dd5f752316402355e0cbe931278b255c2.tar.gz |
Extend apr_bucket_type_t to add a pointer to a function used
to free the bucket. This change enables custom buckets to
completely specify how they are to be allocated and freed.
Before this change, custom buckets were required to use the
same memory allocation scheme as the standard APR buckets.
[Saeid Sakhitab, Bill Stoddard]
git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@58352 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'buckets/apr_buckets_mmap.c')
-rw-r--r-- | buckets/apr_buckets_mmap.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/buckets/apr_buckets_mmap.c b/buckets/apr_buckets_mmap.c index f0f6ca47..7aa4b5a3 100644 --- a/buckets/apr_buckets_mmap.c +++ b/buckets/apr_buckets_mmap.c @@ -144,6 +144,7 @@ static apr_status_t mmap_setaside(apr_bucket *data, apr_pool_t *p) APU_DECLARE_DATA const apr_bucket_type_t apr_bucket_type_mmap = { "MMAP", 5, mmap_destroy, + free, mmap_read, mmap_setaside, apr_bucket_shared_split, |