From 797f403b0dc6d41ad8df434f31c1cbf96507fb6b 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() --- cdrskin/cdrskin_timestamp.h | 2 +- libburn/libburn.h | 9 +++++++++ libburn/options.c | 7 +++++++ 3 files changed, 17 insertions(+), 1 deletion(-) diff --git a/cdrskin/cdrskin_timestamp.h b/cdrskin/cdrskin_timestamp.h index bd41da5..25be398 100644 --- a/cdrskin/cdrskin_timestamp.h +++ b/cdrskin/cdrskin_timestamp.h @@ -1 +1 @@ -#define Cdrskin_timestamP "2007.08.28.143057" +#define Cdrskin_timestamP "2007.09.01.182319" diff --git a/libburn/libburn.h b/libburn/libburn.h index 1eb103e..17c6d2b 100644 --- a/libburn/libburn.h +++ b/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/options.c b/libburn/options.c index 73e7686..ce374e4 100644 --- a/libburn/options.c +++ b/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;