summaryrefslogtreecommitdiff
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);
*/
void *
MHD_pool_allocate (struct MemoryPool *pool,
- size_t size, int from_end);
+ size_t size,
+ int from_end);
/**
@@ -98,6 +99,16 @@ MHD_pool_reallocate (struct MemoryPool *pool,
/**
+ * Check how much memory is left in the @a pool
+ *
+ * @param pool pool to check
+ * @return number of bytes still available in @a pool
+ */
+size_t
+MHD_pool_get_free (struct MemoryPool *pool);
+
+
+/**
* Clear all entries from the memory pool except
* for @a keep of the given @a copy_bytes. The pointer
* returned should be a buffer of @a new_size where