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.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/microhttpd/memorypool.h b/src/microhttpd/memorypool.h
index 2863b2f3..79b10e73 100644
--- a/src/microhttpd/memorypool.h
+++ b/src/microhttpd/memorypool.h
@@ -32,6 +32,9 @@
32 32
33#include "mhd_options.h" 33#include "mhd_options.h"
34#include <stddef.h> 34#include <stddef.h>
35#ifdef HAVE_STDBOOL_H
36#include <stdbool.h>
37#endif
35 38
36/** 39/**
37 * Opaque handle for a memory pool. 40 * Opaque handle for a memory pool.
@@ -65,7 +68,7 @@ MHD_pool_destroy (struct MemoryPool *pool);
65 * 68 *
66 * @param pool memory pool to use for the operation 69 * @param pool memory pool to use for the operation
67 * @param size number of bytes to allocate 70 * @param size number of bytes to allocate
68 * @param from_end allocate from end of pool (set to #MHD_YES); 71 * @param from_end allocate from end of pool (set to 'true');
69 * use this for small, persistent allocations that 72 * use this for small, persistent allocations that
70 * will never be reallocated 73 * will never be reallocated
71 * @return NULL if the pool cannot support size more 74 * @return NULL if the pool cannot support size more
@@ -73,8 +76,8 @@ MHD_pool_destroy (struct MemoryPool *pool);
73 */ 76 */
74void * 77void *
75MHD_pool_allocate (struct MemoryPool *pool, 78MHD_pool_allocate (struct MemoryPool *pool,
76 size_t size, 79 size_t size,
77 int from_end); 80 bool from_end);
78 81
79 82
80/** 83/**