From edc90b880c9e5855ca045117cacac19df8ae0a19 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Sun, 10 Nov 2013 16:35:17 +0000 Subject: [PATCH] New API call burn_disc_pretend_full_uncond() --- cdrskin/cdrskin_timestamp.h | 2 +- libburn/drive.c | 7 +++++++ libburn/libburn.h | 8 ++++++++ libburn/libburn.ver | 1 + 4 files changed, 17 insertions(+), 1 deletion(-) diff --git a/cdrskin/cdrskin_timestamp.h b/cdrskin/cdrskin_timestamp.h index 4147e24..c622552 100644 --- a/cdrskin/cdrskin_timestamp.h +++ b/cdrskin/cdrskin_timestamp.h @@ -1 +1 @@ -#define Cdrskin_timestamP "2013.11.08.095213" +#define Cdrskin_timestamP "2013.11.10.163403" diff --git a/libburn/drive.c b/libburn/drive.c index e69270a..89da9f6 100644 --- a/libburn/drive.c +++ b/libburn/drive.c @@ -2494,6 +2494,13 @@ int burn_disc_pretend_full(struct burn_drive *d) return 1; } +/* ts B31110 API function */ +int burn_disc_pretend_full_uncond(struct burn_drive *d) +{ + d->status = BURN_DISC_FULL; + return 1; +} + /* ts A61021: new API function */ int burn_disc_read_atip(struct burn_drive *d) { diff --git a/libburn/libburn.h b/libburn/libburn.h index 6128e6c..adf6e47 100644 --- a/libburn/libburn.h +++ b/libburn/libburn.h @@ -1237,6 +1237,14 @@ int burn_disc_pretend_blank(struct burn_drive *drive); int burn_disc_pretend_full(struct burn_drive *drive); +/* ts B31110 */ +/** WARNING: This overrides the safety measures against unsuitable media. + Sets the drive status to BURN_DISC_FULL unconditionally. + @since 1.3.4 +*/ +int burn_disc_pretend_full_uncond(struct burn_drive *drive); + + /* ts A61021 */ /** Reads ATIP information from inserted media. To be obtained via burn_drive_get_write_speed(), burn_drive_get_min_write_speed(), diff --git a/libburn/libburn.ver b/libburn/libburn.ver index 465ae59..3bdcf39 100644 --- a/libburn/libburn.ver +++ b/libburn/libburn.ver @@ -32,6 +32,7 @@ burn_disc_get_status; burn_disc_next_track_is_damaged; burn_disc_pretend_blank; burn_disc_pretend_full; +burn_disc_pretend_full_uncond; burn_disc_read; burn_disc_read_atip; burn_disc_remove_session;