New API call isoburn_igopt_set_hfsp_serial_number()
This commit is contained in:
@@ -531,6 +531,7 @@ int isoburn_prepare_disc_aux(struct burn_drive *in_d, struct burn_drive *out_d,
|
||||
opts->vol_expiration_time, opts->vol_effective_time,
|
||||
opts->vol_uuid);
|
||||
iso_write_opts_attach_jte(wopts, opts->libjte_handle);
|
||||
iso_write_opts_set_hfsp_serial_number(wopts, opts->hfsp_serial_number);
|
||||
|
||||
ret= isoburn_adjust_target_iso_head(out_o, opts->partition_offset, 0);
|
||||
if(ret <= 0)
|
||||
@@ -1074,6 +1075,7 @@ int isoburn_igopt_new(struct isoburn_imgen_opts **new_o, int flag)
|
||||
o->appended_partitions[i]= NULL;
|
||||
o->appended_part_types[i]= 0;
|
||||
}
|
||||
memset(o->hfsp_serial_number, 0, 8);
|
||||
return(1);
|
||||
}
|
||||
|
||||
@@ -1567,3 +1569,19 @@ int isoburn_igopt_get_disc_label(struct isoburn_imgen_opts *opts, char **label)
|
||||
return(1);
|
||||
}
|
||||
|
||||
|
||||
int isoburn_igopt_set_hfsp_serial_number(struct isoburn_imgen_opts *opts,
|
||||
uint8_t serial_number[8])
|
||||
{
|
||||
memcpy(opts->hfsp_serial_number, serial_number, 8);
|
||||
return(1);
|
||||
}
|
||||
|
||||
|
||||
int isoburn_igopt_get_hfsp_serial_number(struct isoburn_imgen_opts *opts,
|
||||
uint8_t serial_number[8])
|
||||
{
|
||||
memcpy(serial_number, opts->hfsp_serial_number, 8);
|
||||
return(1);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user