New option -close_filter_list
This commit is contained in:
@ -4096,6 +4096,7 @@ int Xorriso_new(struct XorrisO ** xorriso,char *progname, int flag)
|
||||
m->global_dir_mode= 0555;
|
||||
m->global_file_mode= 0444;
|
||||
m->filters= NULL;
|
||||
m->filter_list_closed= 0;
|
||||
m->do_overwrite= 2;
|
||||
m->do_reassure= 0;
|
||||
m->drive_blacklist= NULL;
|
||||
@ -12641,6 +12642,14 @@ int Xorriso_option_close(struct XorrisO *xorriso, char *mode, int flag)
|
||||
}
|
||||
|
||||
|
||||
/* Option -close_filter_list */
|
||||
int Xorriso_option_close_filter_list(struct XorrisO *xorriso, int flag)
|
||||
{
|
||||
xorriso->filter_list_closed= 1;
|
||||
return(1);
|
||||
}
|
||||
|
||||
|
||||
/* Option -commit */
|
||||
/* @param flag bit0= leave indrive and outdrive aquired as they were,
|
||||
i.e. do not aquire outdrive as new in-out-drive
|
||||
@ -14257,16 +14266,29 @@ int Xorriso_option_help(struct XorrisO *xorriso, int flag)
|
||||
"Filter options:",
|
||||
"External filter processes may produce synthetic file content by reading the",
|
||||
"original content from stdin and writing to stdout whatever they want.",
|
||||
|
||||
#ifdef Xorriso_allow_external_filterS
|
||||
|
||||
" -external_filter name option[:option] program_path [arguments] --",
|
||||
" Define an external filter. Options are: suffix=...: ",
|
||||
" remove_suffix:if_nonempty:if_reduction:if_block_reduction.",
|
||||
" -unregister_filter name",
|
||||
" Undefine an external filter.",
|
||||
" -close_filter_list",
|
||||
" Irrevocably ban -external_filter and -unregister_filter.",
|
||||
" -set_filter name iso_rr_path [***]",
|
||||
" Apply a defined filter to the given data files.",
|
||||
" Special name \"--remove-all-filters\" revokes filtering.",
|
||||
" -set_filter_r name iso_rr_path [***]",
|
||||
" Like -set_filter but affecting all files below directories.",
|
||||
|
||||
#else
|
||||
|
||||
"Sorry: The use of external filters was not enabled at compile time.",
|
||||
" E.g. by ./configure option --enable-external-filters",
|
||||
|
||||
#endif /* ! Xorriso_allow_external_filterS */
|
||||
|
||||
"",
|
||||
"Write-to-media options:",
|
||||
" -rollback Discard the manipulated ISO image and reload it.",
|
||||
@ -17008,7 +17030,7 @@ int Xorriso_count_args(struct XorrisO *xorriso, int argc, char **argv,
|
||||
int ret, was_dashed= 0, i;
|
||||
char *cmd, cmd_data[2*SfileadrL];
|
||||
static char arg0_commands[][40]= {
|
||||
"ban_stdio_write","commit","devices","end","help",
|
||||
"ban_stdio_write","close_filter_list","commit","devices","end","help",
|
||||
"list_formats","no_rc","print_size","pwd","pwdi","pwdx",
|
||||
"rollback","rollback_end","tell_media_space","toc","version",
|
||||
""
|
||||
@ -17274,6 +17296,9 @@ next_command:;
|
||||
(*idx)++;
|
||||
ret= Xorriso_option_close(xorriso, arg1, 0);
|
||||
|
||||
} else if(strcmp(cmd,"close_filter_list")==0) {
|
||||
ret= Xorriso_option_close_filter_list(xorriso, 0);
|
||||
|
||||
} else if(strcmp(cmd,"commit")==0) {
|
||||
ret= Xorriso_option_commit(xorriso, 0);
|
||||
|
||||
|
Reference in New Issue
Block a user