Automatic re-try with -close "as_needed" and unannounced fast-blanked DVD-RW
This commit is contained in:
@ -197,14 +197,24 @@ ex:;
|
||||
}
|
||||
|
||||
|
||||
/* @param flag bit0= get eternal problem status
|
||||
*/
|
||||
int Xorriso_get_problem_status(struct XorrisO *xorriso, char severity[80],
|
||||
int flag)
|
||||
{
|
||||
strcpy(severity, xorriso->problem_status_text);
|
||||
return(xorriso->problem_status);
|
||||
if(flag & 1) {
|
||||
strcpy(severity, xorriso->eternal_problem_status_text);
|
||||
return(xorriso->eternal_problem_status);
|
||||
} else {
|
||||
strcpy(severity, xorriso->problem_status_text);
|
||||
return(xorriso->problem_status);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/* @param flag bit0= set eternal problem status to severity,
|
||||
and set problem status to ALL
|
||||
*/
|
||||
int Xorriso_set_problem_status(struct XorrisO *xorriso, char *severity,
|
||||
int flag)
|
||||
{
|
||||
@ -237,9 +247,15 @@ int Xorriso_set_problem_status(struct XorrisO *xorriso, char *severity,
|
||||
|
||||
#endif /* Xorriso_fetch_with_msg_queueS */
|
||||
|
||||
xorriso->problem_status= sev;
|
||||
strcpy(xorriso->problem_status_text, sev_text);
|
||||
if(sev > xorriso->eternal_problem_status) {
|
||||
if(flag & 1) {
|
||||
strcpy(xorriso->problem_status_text, "ALL");
|
||||
Xorriso__text_to_sev(xorriso->problem_status_text,
|
||||
&(xorriso->problem_status), 0);
|
||||
} else {
|
||||
xorriso->problem_status= sev;
|
||||
strcpy(xorriso->problem_status_text, sev_text);
|
||||
}
|
||||
if(sev > xorriso->eternal_problem_status || (flag & 1)) {
|
||||
xorriso->eternal_problem_status= sev;
|
||||
strcpy(xorriso->eternal_problem_status_text, sev_text);
|
||||
}
|
||||
|
Reference in New Issue
Block a user