"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "libisoburn/isoburn.c" between
libisoburn-1.5.0.tar.gz and libisoburn-1.5.2.tar.gz

About: libisoburn is a frontend for the libraries libburn and libisofs which enables creation and expansion of ISO-9660 filesystems on all media and file types supported by libburn. It implements the API and command interpreter of program xorriso, and installs this program as small dynamically linked binary. xorriso is suitable for incremental data backup and for production of bootable ISO 9660 images. A statically linked version is available as GNU xorriso.

isoburn.c  (libisoburn-1.5.0):isoburn.c  (libisoburn-1.5.2)
/* /*
cc -g -c isoburn.c cc -g -c isoburn.c
*/ */
/* /*
Class core of libisoburn. Class core of libisoburn.
Copyright 2007 - 2017 Vreixo Formoso Lopes <metalpain2002@yahoo.es> Copyright 2007 - 2009 Vreixo Formoso Lopes <metalpain2002@yahoo.es>
Thomas Schmitt <scdbackup@gmx.net> Copyright 2007 - 2019 Thomas Schmitt <scdbackup@gmx.net>
Provided under GPL version 2 or later. Provided under GPL version 2 or later.
*/ */
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
#include "../config.h" #include "../config.h"
#endif #endif
/* ( derived from stub generated by CgeN on Sat, 01 Sep 2007 12:04:36 GMT ) */ /* ( derived from stub generated by CgeN on Sat, 01 Sep 2007 12:04:36 GMT ) */
skipping to change at line 537 skipping to change at line 537
continue; continue;
ret= iso_write_opts_set_partition_img(wopts, i + 1, ret= iso_write_opts_set_partition_img(wopts, i + 1,
opts->appended_part_types[i], opts->appended_part_types[i],
opts->appended_partitions[i], opts->appended_partitions[i],
opts->appended_part_flags[i]); opts->appended_part_flags[i]);
if(ret < 0) { if(ret < 0) {
isoburn_report_iso_error(ret, "Cannot set path for appended partition", isoburn_report_iso_error(ret, "Cannot set path for appended partition",
0, "FAILURE", 0); 0, "FAILURE", 0);
{ret= -1; goto ex;} {ret= -1; goto ex;}
} }
iso_write_opts_set_part_type_guid(wopts, i + 1,
opts->appended_part_type_guids[i],
opts->appended_part_gpt_flags[i] & 1);
} }
iso_write_opts_set_appended_as_gpt(wopts, opts->appended_as_gpt); 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_appended_as_apm(wopts, opts->appended_as_apm);
iso_write_opts_set_part_like_isohybrid(wopts, opts->part_like_isohybrid); 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_iso_mbr_part_type(wopts, opts->iso_mbr_part_type);
iso_write_opts_set_iso_type_guid(wopts, opts->iso_gpt_type_guid,
opts->iso_gpt_flag & 1);
iso_write_opts_set_disc_label(wopts, opts->ascii_disc_label); iso_write_opts_set_disc_label(wopts, opts->ascii_disc_label);
ret= 1; ret= 1;
ex: ex:
return(ret); return(ret);
} }
/* @param flag bit0= modifying rather than growing /* @param flag bit0= modifying rather than growing
bit1= prepare for early release of input drive: bit1= prepare for early release of input drive:
wait until input and then disable image data source wait until input and then disable image data source
skipping to change at line 1129 skipping to change at line 1134
o->libjte_handle= NULL; o->libjte_handle= NULL;
o->tail_blocks= 0; o->tail_blocks= 0;
o->prep_partition= NULL; o->prep_partition= NULL;
o->prep_part_flag= 0; o->prep_part_flag= 0;
o->efi_boot_partition= NULL; o->efi_boot_partition= NULL;
o->efi_boot_part_flag= 0; o->efi_boot_part_flag= 0;
for(i= 0; i < Libisoburn_max_appended_partitionS; i++) { for(i= 0; i < Libisoburn_max_appended_partitionS; i++) {
o->appended_partitions[i]= NULL; o->appended_partitions[i]= NULL;
o->appended_part_types[i]= 0; o->appended_part_types[i]= 0;
o->appended_part_flags[i]= 0; o->appended_part_flags[i]= 0;
memset(o->appended_part_type_guids[i], 0, 16);
o->appended_part_gpt_flags[i]= 0;
} }
o->appended_as_gpt= 0; o->appended_as_gpt= 0;
o->appended_as_apm= 0; o->appended_as_apm= 0;
o->part_like_isohybrid= 0; o->part_like_isohybrid= 0;
o->iso_mbr_part_type= -1; o->iso_mbr_part_type= -1;
memset(o->gpt_guid, 0, 16); memset(o->gpt_guid, 0, 16);
o->gpt_guid_mode= 0; o->gpt_guid_mode= 0;
memset(o->hfsp_serial_number, 0, 8); memset(o->hfsp_serial_number, 0, 8);
o->hfsp_block_size= 0; o->hfsp_block_size= 0;
o->apm_block_size= 0; o->apm_block_size= 0;
skipping to change at line 1690 skipping to change at line 1697
return(1); return(1);
} }
int isoburn_igopt_get_appended_as_gpt(struct isoburn_imgen_opts *opts, int isoburn_igopt_get_appended_as_gpt(struct isoburn_imgen_opts *opts,
int *gpt) int *gpt)
{ {
*gpt= opts->appended_as_gpt; *gpt= opts->appended_as_gpt;
return(1); return(1);
} }
int isoburn_igopt_set_part_type_guid(struct isoburn_imgen_opts *opts,
int partition_number, uint8_t guid[16],
int valid)
{
char msg[80];
if (partition_number < 1 ||
partition_number > Libisoburn_max_appended_partitionS) {
sprintf(msg, "Partition number is out of range (1 ... %d)",
Libisoburn_max_appended_partitionS);
isoburn_msgs_submit(NULL, 0x00060000, msg, 0, "FAILURE", 0);
return(0);
}
if(valid)
memcpy(opts->appended_part_type_guids[partition_number - 1], guid, 16);
if(valid)
opts->appended_part_gpt_flags[partition_number - 1]|= 1;
else
opts->appended_part_gpt_flags[partition_number - 1]&= ~1;
return(1);
}
int isoburn_igopt_get_part_type_guid(struct isoburn_imgen_opts *opts,
int num_entries, uint8_t guids[][16],
int valids[])
{
int i, max_entry= 0;
for(i= 0; i < num_entries; i++) {
memset(guids[i], 0, 16);
valids[i]= 0;
}
for(i= 0; i < Libisoburn_max_appended_partitionS; i++) {
if(i < num_entries) {
memcpy(guids[i], opts->appended_part_type_guids[i], 16);
valids[i]= opts->appended_part_gpt_flags[i] & 1;
}
max_entry= i + 1;
}
return(max_entry);
}
int isoburn_igopt_set_appended_as_apm(struct isoburn_imgen_opts *opts, int apm) int isoburn_igopt_set_appended_as_apm(struct isoburn_imgen_opts *opts, int apm)
{ {
opts->appended_as_apm= !!apm; opts->appended_as_apm= !!apm;
return(1); return(1);
} }
int isoburn_igopt_get_appended_as_apm(struct isoburn_imgen_opts *opts, int isoburn_igopt_get_appended_as_apm(struct isoburn_imgen_opts *opts,
int *apm) int *apm)
{ {
*apm= opts->appended_as_apm; *apm= opts->appended_as_apm;
skipping to change at line 1733 skipping to change at line 1782
return(1); return(1);
} }
int isoburn_igopt_get_iso_mbr_part_type(struct isoburn_imgen_opts *opts, int isoburn_igopt_get_iso_mbr_part_type(struct isoburn_imgen_opts *opts,
int *part_type) int *part_type)
{ {
*part_type= opts->iso_mbr_part_type; *part_type= opts->iso_mbr_part_type;
return(1); return(1);
} }
int isoburn_igopt_set_iso_type_guid(struct isoburn_imgen_opts *opts,
uint8_t guid[16], int valid)
{
if(valid)
memcpy(opts->iso_gpt_type_guid, guid, 16);
opts->iso_gpt_flag= (opts->iso_gpt_flag & ~1) | !!valid;
return(1);
}
int isoburn_igopt_get_iso_type_guid(struct isoburn_imgen_opts *opts,
uint8_t guid[16])
{
memcpy(guid, opts->iso_gpt_type_guid, 16);
return(opts->iso_gpt_flag & 1);
}
int isoburn_igopt_set_gpt_guid(struct isoburn_imgen_opts *opts, int isoburn_igopt_set_gpt_guid(struct isoburn_imgen_opts *opts,
uint8_t guid[16], int mode) uint8_t guid[16], int mode)
{ {
if(mode < 0 || mode > 2) { if(mode < 0 || mode > 2) {
isoburn_msgs_submit(NULL, 0x00060000, isoburn_msgs_submit(NULL, 0x00060000,
"Unrecognized GPT disk GUID setup mode. (0 ... 2)", "Unrecognized GPT disk GUID setup mode. (0 ... 2)",
0, "FAILURE", 0); 0, "FAILURE", 0);
return(0); return(0);
} }
opts->gpt_guid_mode= mode; opts->gpt_guid_mode= mode;
 End of changes. 6 change blocks. 
2 lines changed or deleted 67 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)