Added new parameter "force" to API-experimental burn_drive_info_forget()

trunk@386
Thomas Schmitt 16 years ago
parent 642cc5f77f
commit 4ecc0a8777
  1. 2
      libburn/drive.c
  2. 8
      libburn/libburn.h

@ -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…
Cancel
Save