From eb1cce66caaea3cbe700ae256513afc326a3f01f Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Thu, 26 May 2011 15:01:23 +0000 Subject: [PATCH] New API call burn_disc_next_track_is_damaged() --- libburn/trunk/cdrskin/cdrskin_timestamp.h | 2 +- libburn/trunk/libburn/drive.c | 8 ++++++++ libburn/trunk/libburn/libburn.h | 16 +++++++++++++++- libburn/trunk/libburn/libburn.ver | 1 + 4 files changed, 25 insertions(+), 2 deletions(-) diff --git a/libburn/trunk/cdrskin/cdrskin_timestamp.h b/libburn/trunk/cdrskin/cdrskin_timestamp.h index 4bccf481..2f101a39 100644 --- a/libburn/trunk/cdrskin/cdrskin_timestamp.h +++ b/libburn/trunk/cdrskin/cdrskin_timestamp.h @@ -1 +1 @@ -#define Cdrskin_timestamP "2011.05.26.145626" +#define Cdrskin_timestamP "2011.05.26.150020" diff --git a/libburn/trunk/libburn/drive.c b/libburn/trunk/libburn/drive.c index 35195145..79d64521 100644 --- a/libburn/trunk/libburn/drive.c +++ b/libburn/trunk/libburn/drive.c @@ -3108,3 +3108,11 @@ int burn_disc_get_bd_spare_info(struct burn_drive *d, return ret; } + +/* ts B10525 : API */ +int burn_disc_next_track_is_damaged(struct burn_drive *d, int flag) +{ + return d->next_track_damaged; +} + + diff --git a/libburn/trunk/libburn/libburn.h b/libburn/trunk/libburn/libburn.h index 4a5e4872..f5b41f36 100644 --- a/libburn/trunk/libburn/libburn.h +++ b/libburn/trunk/libburn/libburn.h @@ -1279,6 +1279,21 @@ int burn_disc_get_bd_spare_info(struct burn_drive *d, int burn_disc_track_lba_nwa(struct burn_drive *d, struct burn_write_opts *o, int trackno, int *lba, int *nwa); +/* ts B10525 */ +/** Tells whether a previous attempt to determine the Next Writeable Address + of the upcomming track reveiled that the READ TRACK INFORMATION Damage Bit + is set for this track, resp. that no valid writable address is available. + See MMC-5 6.27.3.7 Damage Bit, 6.27.3.11 NWA_V (NWA valid) + @param d The drive to query. + @param flag Bitfield for control purposes (unused yet, submit 0) + @return 0= Looks ok: Damage Bit is not set, NWA_V is set + 1= Damaged and theoretically writable (NWA_V is set) + 2= Not writable: NWA_V is not set + 3= Damaged and not writable (NWA_V is not set), + @since 1.1.0 +*/ +int burn_disc_next_track_is_damaged(struct burn_drive *d, int flag); + /* ts A70131 */ /** Read start lba of the first track in the last complete session. This is the first parameter of mkisofs option -C. The second parameter @@ -1308,7 +1323,6 @@ int burn_disc_get_msc1(struct burn_drive *d, int *start_lba); off_t burn_disc_available_space(struct burn_drive *d, struct burn_write_opts *o); - /* ts A61202 */ /** Tells the MMC Profile identifier of the loaded media. The drive must be grabbed in order to get a non-zero result. diff --git a/libburn/trunk/libburn/libburn.ver b/libburn/trunk/libburn/libburn.ver index c6347730..8ed62e28 100644 --- a/libburn/trunk/libburn/libburn.ver +++ b/libburn/trunk/libburn/libburn.ver @@ -23,6 +23,7 @@ burn_disc_get_profile; burn_disc_get_sectors; burn_disc_get_sessions; burn_disc_get_status; +burn_disc_next_track_is_damaged; burn_disc_pretend_blank; burn_disc_pretend_full; burn_disc_read;