New -blank mode prefix "force:"
This commit is contained in:
@ -3119,3 +3119,25 @@ int Xorriso_get_drive_handles(struct XorrisO *xorriso,
|
||||
return((*drive)!=NULL);
|
||||
}
|
||||
|
||||
|
||||
int Xorriso_pretend_full_disc(struct XorrisO *xorriso, int flag)
|
||||
{
|
||||
int ret;
|
||||
struct burn_drive_info *dinfo;
|
||||
struct burn_drive *drive;
|
||||
|
||||
ret= Xorriso_get_drive_handles(xorriso, &dinfo, &drive,
|
||||
"on attempt to let libburn pretend having a closed medium", 2);
|
||||
if(ret<=0)
|
||||
return(ret);
|
||||
ret= burn_disc_pretend_full(drive);
|
||||
Xorriso_process_msg_queues(xorriso,0);
|
||||
if(ret <= 0) {
|
||||
sprintf(xorriso->info_text,
|
||||
"Failed to let libburn pretend having a closed medium");
|
||||
Xorriso_msgs_submit(xorriso, 0, xorriso->info_text, 0, "FAILURE", 0);
|
||||
return(0);
|
||||
}
|
||||
return(1);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user