New API calls isoburn_igopt_set_stdio_endsync(), isoburn_igopt_get_stdio_endsync()

This commit is contained in:
2014-04-13 12:05:58 +00:00
parent 1bfd24f856
commit 59c4712b1a
6 changed files with 56 additions and 10 deletions

View File

@@ -150,6 +150,7 @@ int isoburn_new(struct isoburn **objpt, int flag)
o->msgs_submit_handle= NULL;
o->msgs_submit_flag= 0;
o->do_tao= 0;
o->do_fsync= 1;
o->prev= NULL;
o->next= NULL;
o->target_iso_head= calloc(1, o->target_iso_head_size);
@@ -599,6 +600,7 @@ int isoburn_prepare_disc_aux(struct burn_drive *in_d, struct burn_drive *out_d,
}
out_o->do_tao = opts->do_tao;
out_o->do_fsync = opts->do_fsync;
state = isoburn_disc_get_status(in_d);
if (state != BURN_DISC_BLANK && state != BURN_DISC_APPENDABLE &&
@@ -1134,6 +1136,7 @@ int isoburn_igopt_new(struct isoburn_imgen_opts **new_o, int flag)
o->hfsp_block_size= 0;
o->apm_block_size= 0;
o->do_tao= 0;
o->do_fsync= 0;
return(1);
}
@@ -1755,6 +1758,19 @@ int isoburn_igopt_get_write_type(struct isoburn_imgen_opts *opts, int *do_tao)
return(1);
}
int isoburn_igopt_set_stdio_endsync(struct isoburn_imgen_opts *opts,
int do_sync)
{
opts->do_fsync= !!do_sync;
return(1);
}
int isoburn_igopt_get_stdio_endsync(struct isoburn_imgen_opts *opts,
int *do_sync)
{
*do_sync= opts->do_fsync;
return(1);
}
int isoburn_conv_name_chars(struct isoburn_imgen_opts *opts,
char *name, size_t name_len,