This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Functions | |
| void * | halloc (void *context, size_t size) |
| Allocate new memory using specified parent memory context. | |
| void | halloc_register_function (void *context, void(*func)(void *), void *data) |
| Make the specified function run whenever context is free'd, using data as argument. | |
| void | halloc_free (void *context) |
| Free memory context and all children contexts. | |
Works mostly like talloc used in Samba, except that an arbitrary block allocated with malloc() can be registered to be freed by halloc_free.
|
||||||||||||
|
Allocate new memory using specified parent memory context. Context _must_ be either 0 or the result of a previous call to halloc. The resulting memory is set to zero.
If
If |
|
|
Free memory context and all children contexts. Only root contexts may be freed explicitly. All functions registered with halloc_register_function are run in the order they where added. Afterwards, all memory allocated using halloc itself is free'd.
|
|
||||||||||||||||
|
Make the specified function run whenever context is free'd, using data as argument.
|
1.4.4