24 #ifndef DBUS_MEMPOOL_H    25 #define DBUS_MEMPOOL_H    27 #include <dbus/dbus-internals.h>    28 #include <dbus/dbus-memory.h>    29 #include <dbus/dbus-types.h> unsigned int dbus_uint32_t
A 32-bit unsigned integer on all platforms. 
DBUS_PRIVATE_EXPORT void * _dbus_mem_pool_alloc(DBusMemPool *pool)
Allocates an object from the memory pool. 
#define DBUS_BEGIN_DECLS
Macro used prior to declaring functions in the D-Bus header files. 
DBUS_PRIVATE_EXPORT dbus_bool_t _dbus_mem_pool_dealloc(DBusMemPool *pool, void *element)
Deallocates an object previously created with _dbus_mem_pool_alloc(). 
dbus_uint32_t dbus_bool_t
A boolean, valid values are TRUE and FALSE. 
DBUS_PRIVATE_EXPORT void _dbus_mem_pool_free(DBusMemPool *pool)
Frees a memory pool (and all elements allocated from it). 
Internals fields of DBusMemPool. 
unsigned int zero_elements
whether to zero-init allocated elements 
int element_size
size of a single object in the pool 
DBUS_PRIVATE_EXPORT DBusMemPool * _dbus_mem_pool_new(int element_size, dbus_bool_t zero_elements)
Creates a new memory pool, or returns NULL on failure. 
#define DBUS_END_DECLS
Macro used after declaring functions in the D-Bus header files.