From b3f4ca1cf745c550d53eaae569662fd703e9eb85 Mon Sep 17 00:00:00 2001 From: Vreixo Formoso Date: Mon, 28 Jan 2008 23:55:55 +0100 Subject: [PATCH] Add IsoImage context as parameter for return function. --- libisofs/image.h | 2 +- libisofs/libisofs.h | 2 +- libisofs/tree.c | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/libisofs/image.h b/libisofs/image.h index 6d6af0e..2d7505f 100644 --- a/libisofs/image.h +++ b/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_*/ diff --git a/libisofs/libisofs.h b/libisofs/libisofs.h index 868f7c8..8b2e247 100644 --- a/libisofs/libisofs.h +++ b/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. diff --git a/libisofs/tree.c b/libisofs/tree.c index 4c9e161..09853b8 100644 --- a/libisofs/tree.c +++ b/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;