New API call isoburn_disc_pretend_full_uncond()

This commit is contained in:
Thomas Schmitt 2014-05-03 11:47:23 +00:00
parent 08784a116c
commit 1424d7539f
4 changed files with 24 additions and 2 deletions

View File

@ -6,7 +6,7 @@
*/
/* libburn wrappers for libisoburn
Copyright 2007 - 2011 Thomas Schmitt, <scdbackup@gmx.net>
Copyright 2007 - 2014 Thomas Schmitt, <scdbackup@gmx.net>
Provided under GPL version 2 or later.
*/
@ -660,6 +660,19 @@ enum burn_disc_status isoburn_disc_get_status(struct burn_drive *drive)
}
int isoburn_disc_pretend_full_uncond(struct burn_drive *drive)
{
int ret;
struct isoburn *o;
ret= isoburn_find_emulator(&o, drive, 0);
if(ret > 0 && o != NULL)
o->fabricated_disc_status= BURN_DISC_FULL;
ret= burn_disc_pretend_full_uncond(drive);
return(ret);
}
int isoburn_disc_erasable(struct burn_drive *d)
{
int ret;

View File

@ -494,6 +494,14 @@ enum burn_disc_status isoburn_disc_get_status(struct burn_drive *drive);
#endif
/** Sets the medium status to BURN_DISC_FULL unconditionally.
@since 1.3.8
@param drive The drive with the medium to be handled as if it was closed.
@
*/
int isoburn_disc_pretend_full_uncond(struct burn_drive *drive);
/** Tells whether the medium can be treated by isoburn_disc_erase().
Wrapper for: burn_disc_erasable()
@since 0.1.0

View File

@ -10,6 +10,7 @@ isoburn_disc_erasable;
isoburn_disc_erase;
isoburn_disc_get_msc1;
isoburn_disc_get_status;
isoburn_disc_pretend_full_uncond;
isoburn_disc_track_lba_nwa;
isoburn_disc_write;
isoburn_drive_aquire;

View File

@ -1 +1 @@
#define Xorriso_timestamP "2014.05.03.080034"
#define Xorriso_timestamP "2014.05.03.114648"