|
|
|
@ -6,7 +6,7 @@
|
|
|
|
|
/*
|
|
|
|
|
Class core of libisoburn.
|
|
|
|
|
|
|
|
|
|
Copyright 2007 - 2015 Vreixo Formoso Lopes <metalpain2002@yahoo.es>
|
|
|
|
|
Copyright 2007 - 2016 Vreixo Formoso Lopes <metalpain2002@yahoo.es>
|
|
|
|
|
Thomas Schmitt <scdbackup@gmx.net>
|
|
|
|
|
|
|
|
|
|
Provided under GPL version 2 or later.
|
|
|
|
@ -552,6 +552,8 @@ int isoburn_make_iso_write_opts(struct isoburn *out_o,
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
iso_write_opts_set_appended_as_gpt(wopts, opts->appended_as_gpt);
|
|
|
|
|
iso_write_opts_set_appended_as_apm(wopts, opts->appended_as_apm);
|
|
|
|
|
iso_write_opts_set_part_like_isohybrid(wopts, opts->part_like_isohybrid);
|
|
|
|
|
iso_write_opts_set_disc_label(wopts, opts->ascii_disc_label);
|
|
|
|
|
|
|
|
|
|
ret= 1;
|
|
|
|
@ -1170,6 +1172,9 @@ int isoburn_igopt_new(struct isoburn_imgen_opts **new_o, int flag)
|
|
|
|
|
o->appended_part_types[i]= 0;
|
|
|
|
|
o->appended_part_flags[i]= 0;
|
|
|
|
|
}
|
|
|
|
|
o->appended_as_gpt= 0;
|
|
|
|
|
o->appended_as_apm= 0;
|
|
|
|
|
o->part_like_isohybrid= 0;
|
|
|
|
|
memset(o->hfsp_serial_number, 0, 8);
|
|
|
|
|
o->hfsp_block_size= 0;
|
|
|
|
|
o->apm_block_size= 0;
|
|
|
|
@ -1768,6 +1773,37 @@ int isoburn_igopt_get_appended_as_gpt(struct isoburn_imgen_opts *opts,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
int isoburn_igopt_set_appended_as_apm(struct isoburn_imgen_opts *opts, int apm)
|
|
|
|
|
{
|
|
|
|
|
opts->appended_as_apm= !!apm;
|
|
|
|
|
return(1);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
int isoburn_igopt_get_appended_as_apm(struct isoburn_imgen_opts *opts,
|
|
|
|
|
int *apm)
|
|
|
|
|
{
|
|
|
|
|
*apm= opts->appended_as_apm;
|
|
|
|
|
return(1);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
int isoburn_igopt_set_part_like_isohybrid(struct isoburn_imgen_opts *opts,
|
|
|
|
|
int alike)
|
|
|
|
|
{
|
|
|
|
|
opts->part_like_isohybrid= !!alike;
|
|
|
|
|
return(1);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
int isoburn_igopt_get_part_like_isohybrid(struct isoburn_imgen_opts *opts,
|
|
|
|
|
int *alike)
|
|
|
|
|
{
|
|
|
|
|
*alike= opts->part_like_isohybrid;
|
|
|
|
|
return(1);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
int isoburn_igopt_set_disc_label(struct isoburn_imgen_opts *opts, char *label)
|
|
|
|
|
{
|
|
|
|
|
strncpy(opts->ascii_disc_label, label, Libisoburn_disc_label_sizE - 1);
|
|
|
|
|