Added new parameter "force" to API-experimental burn_drive_info_forget()
This commit is contained in:
parent
642cc5f77f
commit
4ecc0a8777
@ -402,7 +402,7 @@ void burn_drive_info_free(struct burn_drive_info drive_infos[])
|
||||
}
|
||||
|
||||
/* Experimental API call */
|
||||
int burn_drive_info_forget(struct burn_drive_info *info)
|
||||
int burn_drive_info_forget(struct burn_drive_info *info, int force)
|
||||
{
|
||||
burn_drive_free(info->drive);
|
||||
return 1;
|
||||
|
@ -551,9 +551,15 @@ int burn_drive_scan(struct burn_drive_info *drive_infos[],
|
||||
and become unable to inquire or grab it.
|
||||
@param drive_info pointer to a single element out of the array
|
||||
obtained from burn_drive_scan() : &(drive_infos[driveno])
|
||||
@param force controls degree of permissible drive usage at the moment this
|
||||
function is called and amount of automatically provided drive
|
||||
shutdown :
|
||||
0= drive must be ungrabbed and BURN_DRIVE_IDLE
|
||||
1= try to release drive resp. accept BURN_DRIVE_GRABBING
|
||||
Use these two only. Further values are to be defined.
|
||||
@return 1 on success, <=0 on failure
|
||||
*/
|
||||
int burn_drive_info_forget(struct burn_drive_info *drive_info);
|
||||
int burn_drive_info_forget(struct burn_drive_info *drive_info, int force);
|
||||
|
||||
|
||||
/** Frees a burn_drive_info array returned by burn_drive_scan
|
||||
|
Loading…
Reference in New Issue
Block a user