Browse Source

Add IsoImage context as parameter for return function.

release-1.5.4.branch
Vreixo Formoso 14 years ago
parent
commit
b3f4ca1cf7
  1. 2
      libisofs/image.h
  2. 2
      libisofs/libisofs.h
  3. 4
      libisofs/tree.c

2
libisofs/image.h

@ -100,7 +100,7 @@ struct Iso_Image
* @return
* 1 add, 0 ignore, < 0 cancel
*/
int (*report)(IsoFileSource *src);
int (*report)(IsoImage *image, IsoFileSource *src);
};
#endif /*LIBISO_IMAGE_H_*/

2
libisofs/libisofs.h

@ -1768,7 +1768,7 @@ int iso_tree_get_ignore_special(IsoImage *image);
* NULL is allowed if you don't want any callback.
*/
void iso_tree_set_report_callback(IsoImage *image,
int (*report)(IsoFileSource *src));
int (*report)(IsoImage*, IsoFileSource*));
/**
* Add a new node to the image tree, from an existing file.

4
libisofs/tree.c

@ -345,7 +345,7 @@ int iso_tree_get_ignore_special(IsoImage *image)
* NULL is allowed if you don't want any callback.
*/
void iso_tree_set_report_callback(IsoImage *image,
int (*report)(IsoFileSource *src))
int (*report)(IsoImage*, IsoFileSource*))
{
image->report = report;
}
@ -544,7 +544,7 @@ int iso_add_dir_src_rec(IsoImage *image, IsoDir *parent, IsoFileSource *dir)
/* if we are here we must insert. Give user a chance for cancel */
if (image->report) {
int r = image->report(file);
int r = image->report(image, file);
if (r <= 0) {
ret = (r < 0 ? ISO_CANCELED : ISO_SUCCESS);
goto dir_rec_continue;

Loading…
Cancel
Save