memorypool.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00028 #ifndef MEMORYPOOL_H
00029 #define MEMORYPOOL_H
00030
00031 #include "internal.h"
00032
00038 struct MemoryPool;
00039
00045 struct MemoryPool *MHD_pool_create (unsigned int max);
00046
00050 void MHD_pool_destroy (struct MemoryPool *pool);
00051
00061 void *MHD_pool_allocate (struct MemoryPool *pool,
00062 unsigned int size, int from_end);
00063
00080 void *MHD_pool_reallocate (struct MemoryPool *pool,
00081 void *old,
00082 unsigned int old_size, unsigned int new_size);
00083
00092 void *MHD_pool_reset (struct MemoryPool *pool, void *keep, unsigned int size);
00093
00094 #endif