New API call burn_disc_next_track_is_damaged()

This commit is contained in:
Thomas Schmitt 2011-05-26 15:01:23 +00:00
parent 03b1817ded
commit eb1cce66ca
4 changed files with 25 additions and 2 deletions

View File

@ -1 +1 @@
#define Cdrskin_timestamP "2011.05.26.145626" #define Cdrskin_timestamP "2011.05.26.150020"

View File

@ -3108,3 +3108,11 @@ int burn_disc_get_bd_spare_info(struct burn_drive *d,
return ret; return ret;
} }
/* ts B10525 : API */
int burn_disc_next_track_is_damaged(struct burn_drive *d, int flag)
{
return d->next_track_damaged;
}

View File

@ -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 burn_disc_track_lba_nwa(struct burn_drive *d, struct burn_write_opts *o,
int trackno, int *lba, int *nwa); 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 */ /* ts A70131 */
/** Read start lba of the first track in the last complete session. /** Read start lba of the first track in the last complete session.
This is the first parameter of mkisofs option -C. The second parameter 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, off_t burn_disc_available_space(struct burn_drive *d,
struct burn_write_opts *o); struct burn_write_opts *o);
/* ts A61202 */ /* ts A61202 */
/** Tells the MMC Profile identifier of the loaded media. The drive must be /** Tells the MMC Profile identifier of the loaded media. The drive must be
grabbed in order to get a non-zero result. grabbed in order to get a non-zero result.

View File

@ -23,6 +23,7 @@ burn_disc_get_profile;
burn_disc_get_sectors; burn_disc_get_sectors;
burn_disc_get_sessions; burn_disc_get_sessions;
burn_disc_get_status; burn_disc_get_status;
burn_disc_next_track_is_damaged;
burn_disc_pretend_blank; burn_disc_pretend_blank;
burn_disc_pretend_full; burn_disc_pretend_full;
burn_disc_read; burn_disc_read;