New API function burn_write_opts_get_drive()

This commit is contained in:
Thomas Schmitt 2007-09-01 18:23:06 +00:00
parent 33f82a426e
commit b40de2f9ed
3 changed files with 17 additions and 1 deletions

View File

@ -1 +1 @@
#define Cdrskin_timestamP "2007.08.28.143057" #define Cdrskin_timestamP "2007.09.01.182319"

View File

@ -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); 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 /** Frees a write_opts struct created with burn_write_opts_new
@param opts write_opts to free @param opts write_opts to free
*/ */

View File

@ -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) void burn_read_opts_set_raw(struct burn_read_opts *opts, int raw)
{ {
opts->raw = raw; opts->raw = raw;