aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd/memorypool.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/microhttpd/memorypool.h')
-rw-r--r--src/microhttpd/memorypool.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/microhttpd/memorypool.h b/src/microhttpd/memorypool.h
index 84135c37..36136af8 100644
--- a/src/microhttpd/memorypool.h
+++ b/src/microhttpd/memorypool.h
@@ -70,7 +70,8 @@ MHD_pool_destroy (struct MemoryPool *pool);
70 */ 70 */
71void * 71void *
72MHD_pool_allocate (struct MemoryPool *pool, 72MHD_pool_allocate (struct MemoryPool *pool,
73 size_t size, int from_end); 73 size_t size,
74 int from_end);
74 75
75 76
76/** 77/**
@@ -98,6 +99,16 @@ MHD_pool_reallocate (struct MemoryPool *pool,
98 99
99 100
100/** 101/**
102 * Check how much memory is left in the @a pool
103 *
104 * @param pool pool to check
105 * @return number of bytes still available in @a pool
106 */
107size_t
108MHD_pool_get_free (struct MemoryPool *pool);
109
110
111/**
101 * Clear all entries from the memory pool except 112 * Clear all entries from the memory pool except
102 * for @a keep of the given @a copy_bytes. The pointer 113 * for @a keep of the given @a copy_bytes. The pointer
103 * returned should be a buffer of @a new_size where 114 * returned should be a buffer of @a new_size where