diff --git a/libburn/drive.c b/libburn/drive.c index ef8bf27..5fb7b91 100644 --- a/libburn/drive.c +++ b/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/libburn/libburn.h b/libburn/libburn.h index 2ddc8e7..16451e3 100644 --- a/libburn/libburn.h +++ b/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