diff --git a/trunk/libburn/drive.c b/trunk/libburn/drive.c index ef8bf27c..5fb7b914 100644 --- a/trunk/libburn/drive.c +++ b/trunk/libburn/drive.c @@ -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; diff --git a/trunk/libburn/libburn.h b/trunk/libburn/libburn.h index 2ddc8e79..16451e3c 100644 --- a/trunk/libburn/libburn.h +++ b/trunk/libburn/libburn.h @@ -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