|
|
|
@ -6,7 +6,7 @@
|
|
|
|
|
/*
|
|
|
|
|
Class core of libisoburn. |
|
|
|
|
|
|
|
|
|
Copyright 2007 - 2016 Vreixo Formoso Lopes <metalpain2002@yahoo.es> |
|
|
|
|
Copyright 2007 - 2017 Vreixo Formoso Lopes <metalpain2002@yahoo.es> |
|
|
|
|
Thomas Schmitt <scdbackup@gmx.net> |
|
|
|
|
|
|
|
|
|
Provided under GPL version 2 or later. |
|
|
|
@ -558,6 +558,7 @@ 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_iso_mbr_part_type(wopts, opts->iso_mbr_part_type); |
|
|
|
|
iso_write_opts_set_disc_label(wopts, opts->ascii_disc_label); |
|
|
|
|
|
|
|
|
|
ret= 1; |
|
|
|
@ -1179,6 +1180,7 @@ int isoburn_igopt_new(struct isoburn_imgen_opts **new_o, int flag)
|
|
|
|
|
o->appended_as_gpt= 0; |
|
|
|
|
o->appended_as_apm= 0; |
|
|
|
|
o->part_like_isohybrid= 0; |
|
|
|
|
o->iso_mbr_part_type= -1; |
|
|
|
|
memset(o->gpt_guid, 0, 16); |
|
|
|
|
o->gpt_guid_mode= 0; |
|
|
|
|
memset(o->hfsp_serial_number, 0, 8); |
|
|
|
@ -1810,6 +1812,24 @@ int isoburn_igopt_get_part_like_isohybrid(struct isoburn_imgen_opts *opts,
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
int isoburn_igopt_set_iso_mbr_part_type(struct isoburn_imgen_opts *opts, |
|
|
|
|
int part_type) |
|
|
|
|
{ |
|
|
|
|
if(part_type < -1 || part_type > 255) |
|
|
|
|
part_type = -1; |
|
|
|
|
opts->iso_mbr_part_type = part_type; |
|
|
|
|
return(1); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
int isoburn_igopt_get_iso_mbr_part_type(struct isoburn_imgen_opts *opts, |
|
|
|
|
int *part_type) |
|
|
|
|
{ |
|
|
|
|
*part_type= opts->iso_mbr_part_type; |
|
|
|
|
return(1); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
int isoburn_igopt_set_gpt_guid(struct isoburn_imgen_opts *opts, |
|
|
|
|
uint8_t guid[16], int mode) |
|
|
|
|
{ |
|
|
|
|