API for volset read, burn_disc creation and sync. write.

Updating of isoburn_start_emulation() to make use of new
isoburn_set_start_byte().
This commit is contained in:
Vreixo Formoso Lopes
2007-09-12 09:25:44 +00:00
parent 77e1d4042a
commit ba0e689ada
2 changed files with 51 additions and 10 deletions

View File

@ -134,16 +134,11 @@ int isoburn_start_emulation(struct isoburn *o, int flag)
/* ok, PVM found, set size */
size = (off_t) iso_read_lsb(pvm->vol_space_size, 4);
size *= (off_t) 2048; /* block size in bytes */
// TODO where I get the struct burn_write_opts * from?
// why that function doesn't receive a struct isoburn
isoburn_write_opts_set_start_byte(XXXXXX, size);
isoburn_set_start_byte(o, size, 0);
} else if (!strncmp((char*)pvm->std_identifier, "CDXX1", 5)) {
/* empty image */
// TODO where I get the struct burn_write_opts * from?
// why that function doesn't receive a struct isoburn
isoburn_write_opts_set_start_byte(XXXXXX, (off_t) 0);
isoburn_set_start_byte(o, (off_t) 0, 0);
} else {
// TODO not valid iso image
// should this be an error?