summaryrefslogtreecommitdiff
path: root/include/apr_allocator.h
diff options
context:
space:
mode:
authorjwoolley <jwoolley@13f79535-47bb-0310-9956-ffa450edef68>2002-04-01 05:42:38 +0000
committerjwoolley <jwoolley@13f79535-47bb-0310-9956-ffa450edef68>2002-04-01 05:42:38 +0000
commit962f70312e211822806605e2591e85da259a4a77 (patch)
treeb722477ed6441358bbf001d9fd95c918d87e62c8 /include/apr_allocator.h
parent3a2a5c61afd1cdbb86a4e3aff913f75073f9578f (diff)
downloadlibapr-962f70312e211822806605e2591e85da259a4a77.tar.gz
Minor tweaks to expose things in the apr_allocator API needed to implement
the bucket allocator in apr-util git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63209 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include/apr_allocator.h')
-rw-r--r--include/apr_allocator.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/apr_allocator.h b/include/apr_allocator.h
index 934c7c8b2..a2d2aa1bb 100644
--- a/include/apr_allocator.h
+++ b/include/apr_allocator.h
@@ -85,6 +85,15 @@ typedef struct apr_allocator_t apr_allocator_t;
/** the structure which holds information about the allocation */
typedef struct apr_memnode_t apr_memnode_t;
+struct apr_memnode_t {
+ apr_memnode_t *next;
+ apr_uint32_t index;
+ char *first_avail;
+ char *endp;
+};
+
+#define APR_MEMNODE_T_SIZE APR_ALIGN_DEFAULT(sizeof(apr_memnode_t))
+
/**
* Create a new allocator
* @param allocator The allocator we have just created.