From b40de2f9ed4ecd63ee65e4a98a01b3d332b7a4dc Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Sat, 1 Sep 2007 18:23:06 +0000 Subject: [PATCH] New API function burn_write_opts_get_drive() --- libburn/trunk/cdrskin/cdrskin_timestamp.h | 2 +- libburn/trunk/libburn/libburn.h | 9 +++++++++ libburn/trunk/libburn/options.c | 7 +++++++ 3 files changed, 17 insertions(+), 1 deletion(-) diff --git a/libburn/trunk/cdrskin/cdrskin_timestamp.h b/libburn/trunk/cdrskin/cdrskin_timestamp.h index bd41da51..25be3987 100644 --- a/libburn/trunk/cdrskin/cdrskin_timestamp.h +++ b/libburn/trunk/cdrskin/cdrskin_timestamp.h @@ -1 +1 @@ -#define Cdrskin_timestamP "2007.08.28.143057" +#define Cdrskin_timestamP "2007.09.01.182319" diff --git a/libburn/trunk/libburn/libburn.h b/libburn/trunk/libburn/libburn.h index 1eb103ec..17c6d2b0 100644 --- a/libburn/trunk/libburn/libburn.h +++ b/libburn/trunk/libburn/libburn.h @@ -927,6 +927,15 @@ enum burn_drive_status burn_drive_get_status(struct burn_drive *drive, */ struct burn_write_opts *burn_write_opts_new(struct burn_drive *drive); + +/* ts A70901 */ +/** Inquires the drive associated with a burn_write_opts object. + @param opts object to inquire + @return pointer to drive +*/ +struct burn_drive *burn_write_opts_get_drive(struct burn_write_opts *opts); + + /** Frees a write_opts struct created with burn_write_opts_new @param opts write_opts to free */ diff --git a/libburn/trunk/libburn/options.c b/libburn/trunk/libburn/options.c index 73e7686e..ce374e4e 100644 --- a/libburn/trunk/libburn/options.c +++ b/libburn/trunk/libburn/options.c @@ -378,6 +378,13 @@ void burn_write_opts_set_force(struct burn_write_opts *opts, int use_force) } +/* ts A70901: API */ +struct burn_drive *burn_write_opts_get_drive(struct burn_write_opts *opts) +{ + return opts->drive; +} + + void burn_read_opts_set_raw(struct burn_read_opts *opts, int raw) { opts->raw = raw;