From 7c649f7af1b7f4b6902ba4fe6465432e3e81d0da Mon Sep 17 00:00:00 2001 From: John Cupitt Date: Thu, 3 Jul 2008 22:07:45 +0000 Subject: [PATCH] stuff --- libsrc/iofuncs/callback.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/libsrc/iofuncs/callback.c b/libsrc/iofuncs/callback.c index 2c5a73c7..d01420b5 100644 --- a/libsrc/iofuncs/callback.c +++ b/libsrc/iofuncs/callback.c @@ -7,6 +7,8 @@ * - evalend callbacks added * 16/1/04 JC * - now always calls all callbacks, even if some fail + * 2/7/08 + * - added invalidate callbacks */ /* @@ -119,6 +121,12 @@ im_add_evalstart_callback( IMAGE *im, int (*fn)(), void *a, void *b ) return( add_callback( im, &im->evalstartfns, fn, a, b ) ); } +int +im_add_invalidate_callback( IMAGE *im, int (*fn)(), void *a, void *b ) +{ + return( add_callback( im, &im->invalidatefns, fn, a, b ) ); +} + /* Perform a user callback. */ static void *