New API call burn_drive_get_bd_r_pow()

This commit is contained in:
2017-02-06 14:58:39 +01:00
parent 858e42d696
commit d71d80d1a1
4 changed files with 27 additions and 3 deletions

View File

@@ -1,7 +1,7 @@
/* -*- indent-tabs-mode: t; tab-width: 8; c-basic-offset: 8; -*- */
/* Copyright (c) 2004 - 2006 Derek Foreman, Ben Jansens
Copyright (c) 2006 - 2016 Thomas Schmitt <scdbackup@gmx.net>
Copyright (c) 2006 - 2017 Thomas Schmitt <scdbackup@gmx.net>
Provided under GPL version 2 or later.
*/
@@ -3614,6 +3614,18 @@ ex:
}
int burn_drive_get_bd_r_pow(struct burn_drive *d)
{
struct burn_feature_descr *feature;
if (d->current_profile == 0x41)
if (burn_drive_has_feature(d, 0x38, &feature, 0) == 1)
if (feature->flags & 1)
return 1;
return 0;
}
int burn_drive_set_immed(struct burn_drive *drive, int enable)
{
drive->do_no_immed = !enable;