|
cbmimage
|
cbmimage alloc function definitions More...
#include <stddef.h>

Go to the source code of this file.
Typedefs | |
| typedef void * | cbmimage_alloc_xalloc_function_type(size_t size) |
| Type for a cbmimage_i_xalloc() style callback. | |
| typedef void * | cbmimage_alloc_xalloc_and_copy_function_type(size_t newsize, const void *oldbuffer, size_t oldsize) |
| Type for a cbmimage_i_xalloc_and_copy() style callback. | |
| typedef void | cbmimage_alloc_xfree_function_type(void *ptr) |
| Type for a cbmimage_i_xfree() style callback. | |
Functions | |
| void * | cbmimage_i_xalloc (size_t size) |
| void | cbmimage_i_xfree (void *ptr) |
| void * | cbmimage_i_xalloc_and_copy (size_t newsize, const void *oldbuffer, size_t oldsize) |
| int | cbmimage_alloc_set_functions (cbmimage_alloc_xalloc_function_type, cbmimage_alloc_xfree_function_type, cbmimage_alloc_xalloc_and_copy_function_type) |
| set the callback for output from the library | |
cbmimage alloc function definitions
| typedef void * cbmimage_alloc_xalloc_and_copy_function_type(size_t newsize, const void *oldbuffer, size_t oldsize) |
Type for a cbmimage_i_xalloc_and_copy() style callback.
Used with cbmimage_set_alloc_functions()
| typedef void * cbmimage_alloc_xalloc_function_type(size_t size) |
Type for a cbmimage_i_xalloc() style callback.
Used with cbmimage_set_alloc_functions()
| typedef void cbmimage_alloc_xfree_function_type(void *ptr) |
Type for a cbmimage_i_xfree() style callback.
Used with cbmimage_set_alloc_functions()
| int cbmimage_alloc_set_functions | ( | cbmimage_alloc_xalloc_function_type | xalloc_function, |
| cbmimage_alloc_xfree_function_type | xfree_function, | ||
| cbmimage_alloc_xalloc_and_copy_function_type | xalloc_and_copy_function ) |
set the callback for output from the library
| [in] | xalloc_function | pointer to the function that is called whenever the library wants to xalloc() something |
If this is set to NULL, then a library internal xalloc() is used
| [in] | xfree_function | pointer to the function that is called whenever the library wants to xfree() something |
If this is set to NULL, then a library internal xfree() is used
| [in] | xalloc_and_copy_function | pointer to the function that is called whenever the library wants to xalloc_and_copy() something |
If this is set to NULL, then a library internal xalloc_and_copy() is used