Reporting number of processed filters with -set_filter and -set_filter_r

This commit is contained in:
Thomas Schmitt 2009-04-05 11:05:37 +00:00
parent e29ea90633
commit 967b6a45ce
2 changed files with 7 additions and 1 deletions

View File

@ -16475,6 +16475,7 @@ out_of_mem:;
/* Options -set_filter , -set_filter_r */
/* @param flag bit0=recursive -set_filter_r
bit1= do not reset pacifier, no final pacifier message
*/
int Xorriso_option_set_filter(struct XorrisO *xorriso, char *name,
int argc, char **argv, int *idx, int flag)
@ -16489,6 +16490,8 @@ int Xorriso_option_set_filter(struct XorrisO *xorriso, char *name,
argc, argv, *idx, &end_idx, &optc, &optv, 0);
if(ret <= 0)
goto ex;
if(!(flag&2))
Xorriso_pacifier_reset(xorriso, 0);
for(i= 0; i<optc; i++) {
if(flag&1) {
@ -16514,6 +16517,9 @@ int Xorriso_option_set_filter(struct XorrisO *xorriso, char *name,
continue;
ret= 0; goto ex;
}
if(!(flag&2))
Xorriso_pacifier_callback(xorriso, "file filters processed",
xorriso->pacifier_count, 0, "", 1);
ret= 1;
ex:;
(*idx)= end_idx;

View File

@ -1 +1 @@
#define Xorriso_timestamP "2009.04.04.144241"
#define Xorriso_timestamP "2009.04.05.110534"