New API call burn_drive_get_bd_r_pow()

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

View File

@ -1 +1 @@
#define Cdrskin_timestamP "2017.01.28.200802" #define Cdrskin_timestamP "2017.02.06.135800"

View File

@ -1,7 +1,7 @@
/* -*- indent-tabs-mode: t; tab-width: 8; c-basic-offset: 8; -*- */ /* -*- indent-tabs-mode: t; tab-width: 8; c-basic-offset: 8; -*- */
/* Copyright (c) 2004 - 2006 Derek Foreman, Ben Jansens /* 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. 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) int burn_drive_set_immed(struct burn_drive *drive, int enable)
{ {
drive->do_no_immed = !enable; drive->do_no_immed = !enable;

View File

@ -1,7 +1,7 @@
/* -*- indent-tabs-mode: t; tab-width: 8; c-basic-offset: 8; -*- */ /* -*- indent-tabs-mode: t; tab-width: 8; c-basic-offset: 8; -*- */
/* Copyright (c) 2004 - 2006 Derek Foreman, Ben Jansens /* 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. Provided under GPL version 2 or later.
This is the official API definition of libburn. This is the official API definition of libburn.
@ -1313,6 +1313,17 @@ int burn_drive_get_media_sno(struct burn_drive *d, char **sno, int *sno_len);
int burn_disc_read_atip(struct burn_drive *drive); int burn_disc_read_atip(struct burn_drive *drive);
/* ts B70206 */
/** Tells whether a BD-R medium with Pseudo Overwrite (POW) formatting is in
the drive. Such a formatting may have been applied by dvd+rw-tools. It
prevents sequential multi-session.
@param drive The drive to query.
@return 1 if BD-R Pseudo Overwrite , 0 if not BD-R or not POW
@since 1.4.8
*/
int burn_drive_get_bd_r_pow(struct burn_drive *drive);
/* ts A61020 */ /* ts A61020 */
/** Returns start and end lba of the media which is currently inserted /** Returns start and end lba of the media which is currently inserted
in the given drive. The drive has to be grabbed to have hope for reply. in the given drive. The drive has to be grabbed to have hope for reply.

View File

@ -50,6 +50,7 @@ burn_drive_extract_audio_track;
burn_drive_free_speedlist; burn_drive_free_speedlist;
burn_drive_get_adr; burn_drive_get_adr;
burn_drive_get_all_profiles; burn_drive_get_all_profiles;
burn_drive_get_bd_r_pow;
burn_drive_get_best_speed; burn_drive_get_best_speed;
burn_drive_get_disc; burn_drive_get_disc;
burn_drive_get_drive_role; burn_drive_get_drive_role;