Allow to use NULL as free function for image attached data.

This commit is contained in:
Vreixo Formoso
2008-02-07 12:31:09 +01:00
parent ec7fc7d1b2
commit ae004b1bfc
2 changed files with 12 additions and 9 deletions

View File

@ -1344,16 +1344,16 @@ void iso_image_unref(IsoImage *image);
* @param data
* Pointer to application defined data that will be attached to the
* image. You can pass NULL to remove any already attached data.
* @param free
* @param give_up
* Function that will be called when the image does not need the data
* any more. It receives the data pointer as an argumente, and eventually
* causes data to be free.
* causes data to be freed. It can be NULL if you don't need it.
* @return
* 1 on succes, < 0 on error
*
* @since 0.6.2
*/
int iso_image_attach_data(IsoImage *image, void *data, void (*free)(void*));
int iso_image_attach_data(IsoImage *image, void *data, void (*give_up)(void*));
/**
* The the data previously attached with iso_image_attach_data()