diff options
Diffstat (limited to 'src/daemon/memorypool.h')
-rw-r--r-- | src/daemon/memorypool.h | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/src/daemon/memorypool.h b/src/daemon/memorypool.h index 693b03f6..92e09a51 100644 --- a/src/daemon/memorypool.h +++ b/src/daemon/memorypool.h | |||
@@ -43,12 +43,12 @@ struct MemoryPool; | |||
43 | * | 43 | * |
44 | * @param max maximum size of the pool | 44 | * @param max maximum size of the pool |
45 | */ | 45 | */ |
46 | struct MemoryPool * MHD_pool_create(unsigned int max); | 46 | struct MemoryPool *MHD_pool_create (unsigned int max); |
47 | 47 | ||
48 | /** | 48 | /** |
49 | * Destroy a memory pool. | 49 | * Destroy a memory pool. |
50 | */ | 50 | */ |
51 | void MHD_pool_destroy(struct MemoryPool * pool); | 51 | void MHD_pool_destroy (struct MemoryPool *pool); |
52 | 52 | ||
53 | /** | 53 | /** |
54 | * Allocate size bytes from the pool. | 54 | * Allocate size bytes from the pool. |
@@ -59,9 +59,8 @@ void MHD_pool_destroy(struct MemoryPool * pool); | |||
59 | * @return NULL if the pool cannot support size more | 59 | * @return NULL if the pool cannot support size more |
60 | * bytes | 60 | * bytes |
61 | */ | 61 | */ |
62 | void * MHD_pool_allocate(struct MemoryPool * pool, | 62 | void *MHD_pool_allocate (struct MemoryPool *pool, |
63 | unsigned int size, | 63 | unsigned int size, int from_end); |
64 | int from_end); | ||
65 | 64 | ||
66 | /** | 65 | /** |
67 | * Reallocate a block of memory obtained from the pool. | 66 | * Reallocate a block of memory obtained from the pool. |
@@ -79,9 +78,8 @@ void * MHD_pool_allocate(struct MemoryPool * pool, | |||
79 | * NULL if the pool cannot support new_size | 78 | * NULL if the pool cannot support new_size |
80 | * bytes (old continues to be valid for old_size) | 79 | * bytes (old continues to be valid for old_size) |
81 | */ | 80 | */ |
82 | void * MHD_pool_reallocate(struct MemoryPool * pool, | 81 | void *MHD_pool_reallocate (struct MemoryPool *pool, |
83 | void * old, | 82 | void *old, |
84 | unsigned int old_size, | 83 | unsigned int old_size, unsigned int new_size); |
85 | unsigned int new_size); | ||
86 | 84 | ||
87 | #endif | 85 | #endif |