New command -changes_pending
This commit is contained in:
@ -1199,6 +1199,36 @@ ex:;
|
||||
}
|
||||
|
||||
|
||||
/* Option -changes_pending */
|
||||
int Xorriso_option_changes_pending(struct XorrisO *xorriso, char *state,
|
||||
int flag)
|
||||
{
|
||||
if(strcmp(state, "no") == 0)
|
||||
xorriso->volset_change_pending= 0;
|
||||
else if(strcmp(state, "yes") == 0)
|
||||
xorriso->volset_change_pending= 1;
|
||||
else if(strcmp(state, "mkisofs_printed") == 0)
|
||||
xorriso->volset_change_pending= 2;
|
||||
else if(strcmp(state, "show_status") == 0) {
|
||||
strcpy(xorriso->result_line, "-changes_pending ");
|
||||
if(xorriso->volset_change_pending == 0)
|
||||
strcat(xorriso->result_line, "no");
|
||||
else if(xorriso->volset_change_pending == 2)
|
||||
strcat(xorriso->result_line, "mkisofs_printed");
|
||||
else
|
||||
strcat(xorriso->result_line, "yes");
|
||||
strcat(xorriso->result_line, "\n");
|
||||
Xorriso_result(xorriso,0);
|
||||
} else {
|
||||
sprintf(xorriso->info_text, "-changes_pending: unknown state code '%s'",
|
||||
state);
|
||||
Xorriso_msgs_submit(xorriso, 0, xorriso->info_text, 0, "FAILURE", 0);
|
||||
return(0);
|
||||
}
|
||||
return(1);
|
||||
}
|
||||
|
||||
|
||||
/* Option -charset */
|
||||
/* @param flag bit0= set in_charset
|
||||
bit1= set out_charset
|
||||
|
Reference in New Issue
Block a user