|
cbmimage
|
cbmimage: allocation functions More...

Functions | |
| static void * | cbmimage_ii_xalloc (size_t size) |
| static void | cbmimage_ii_xfree (void *ptr) |
| static void * | cbmimage_ii_xalloc_and_copy (size_t newsize, const void *oldbuffer, size_t oldsize) |
| 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 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 | |
Variables | |
| static cbmimage_alloc_xalloc_function_type * | cbmimage_i_alloc_xalloc_function = cbmimage_ii_xalloc |
| pointer to the callback function for cbmimage_i_xalloc() | |
| static cbmimage_alloc_xalloc_and_copy_function_type * | cbmimage_i_alloc_xalloc_and_copy_function = cbmimage_ii_xalloc_and_copy |
| pointer to the callback function for cbmimage_i_xalloc_and_copy() | |
| static cbmimage_alloc_xfree_function_type * | cbmimage_i_alloc_xfree_function = cbmimage_ii_xfree |
| pointer to the callback function for cbmimage_i_xfree() | |
cbmimage: allocation 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