"Fossies" - the Fresh Open Source Software Archive  

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

About: GNU xorriso creates, loads, manipulates and writes ISO 9660 filesystem images with Rock Ridge extensions. It is suitable for incremental data backup and for production of bootable ISO 9660 images. GNU xorriso is a statical compilation of the libraries libburn, libisofs, libisoburn, and libjte.

isoburn.c  (xorriso-1.5.2):isoburn.c  (xorriso-1.5.4)
/* /*
cc -g -c isoburn.c cc -g -c isoburn.c
*/ */
/* /*
Class core of libisoburn. Class core of libisoburn.
Copyright 2007 - 2009 Vreixo Formoso Lopes <metalpain2002@yahoo.es> Copyright 2007 - 2009 Vreixo Formoso Lopes <metalpain2002@yahoo.es>
Copyright 2007 - 2019 Thomas Schmitt <scdbackup@gmx.net> Copyright 2007 - 2020 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 671 skipping to change at line 671
if(in_o->iso_data_source!=NULL) if(in_o->iso_data_source!=NULL)
isoburn_data_source_shutdown(in_o->iso_data_source, 0); isoburn_data_source_shutdown(in_o->iso_data_source, 0);
} }
ret= iso_write_opts_get_data_start(wopts, &data_start, 0); ret= iso_write_opts_get_data_start(wopts, &data_start, 0);
opts->data_start_lba= -1; opts->data_start_lba= -1;
if(ret > 0 && data_start <= 0x7FFFFFFF) if(ret > 0 && data_start <= 0x7FFFFFFF)
opts->data_start_lba= data_start; opts->data_start_lba= data_start;
/* TODO check return values for failure. propertly clean-up on error */ /* TODO check return values for failure. properly clean-up on error */
out_o->iso_source= wsrc; out_o->iso_source= wsrc;
*disc = burn_disc_create(); *disc = burn_disc_create();
session = burn_session_create(); session = burn_session_create();
burn_disc_add_session(*disc, session, BURN_POS_END); burn_disc_add_session(*disc, session, BURN_POS_END);
track = burn_track_create(); track = burn_track_create();
burn_track_set_source(track, out_o->iso_source); burn_track_set_source(track, out_o->iso_source);
burn_session_add_track(session, track, BURN_POS_END); burn_session_add_track(session, track, BURN_POS_END);
skipping to change at line 829 skipping to change at line 829
"Cannot allocate memory for read options", 0, "FATAL", 0); "Cannot allocate memory for read options", 0, "FATAL", 0);
return(-1); return(-1);
} }
o->cache_tiles= Libisoburn_default_cache_tileS; o->cache_tiles= Libisoburn_default_cache_tileS;
o->cache_tile_blocks= Libisoburn_default_tile_blockS; o->cache_tile_blocks= Libisoburn_default_tile_blockS;
o->norock= 0; o->norock= 0;
o->nojoliet= 0; o->nojoliet= 0;
o->noiso1999= 1; o->noiso1999= 1;
o->do_ecma119_map= 0; o->do_ecma119_map= 0;
o->map_mode= 1; o->map_mode= 1;
o->do_joliet_map= 0;
o->joliet_map_mode= 1;
o->noaaip= 1; o->noaaip= 1;
o->noacl= 1; o->noacl= 1;
o->noea= 1; o->noea= 1;
o->noino= 1; o->noino= 1;
o->nomd5= 1; o->nomd5= 1;
o->preferjoliet= 0; o->preferjoliet= 0;
o->uid= geteuid(); o->uid= geteuid();
o->gid= getegid(); o->gid= getegid();
o->mode= 0444; o->mode= 0444;
o->dirmode= 0555; o->dirmode= 0555;
skipping to change at line 927 skipping to change at line 929
o->noiso1999= !!(ext&4); o->noiso1999= !!(ext&4);
o->preferjoliet= !!(ext&8); o->preferjoliet= !!(ext&8);
o->pretend_blank= !!(ext&16); o->pretend_blank= !!(ext&16);
o->noaaip= !!(ext & 32); o->noaaip= !!(ext & 32);
o->noacl= !!(ext & 64); o->noacl= !!(ext & 64);
o->noea= !!(ext & 128); o->noea= !!(ext & 128);
o->noino= !!(ext & 256); o->noino= !!(ext & 256);
o->nomd5= (ext >> 9) & 3; o->nomd5= (ext >> 9) & 3;
o->do_ecma119_map= !!(ext & 2048); o->do_ecma119_map= !!(ext & 2048);
o->map_mode= (ext >> 12) & 3; o->map_mode= (ext >> 12) & 3;
o->do_joliet_map= !!(ext & 16384);
o->joliet_map_mode= !!(ext & 32768);
return(1); return(1);
} }
int isoburn_ropt_get_extensions(struct isoburn_read_opts *o, int *ext) int isoburn_ropt_get_extensions(struct isoburn_read_opts *o, int *ext)
{ {
*ext= (!!o->norock) | ((!!o->nojoliet)<<1) | ((!!o->noiso1999)<<2) | *ext= (!!o->norock) | ((!!o->nojoliet)<<1) | ((!!o->noiso1999)<<2) |
((!!o->preferjoliet)<<3) | ((!!o->pretend_blank)<<4) | ((!!o->preferjoliet)<<3) | ((!!o->pretend_blank)<<4) |
((!!o->noaaip) << 5) | ((!!o->noacl) << 6) | ((!!o->noea) << 7) | ((!!o->noaaip) << 5) | ((!!o->noacl) << 6) | ((!!o->noea) << 7) |
((!!o->noino) << 8) | ((o->nomd5 & 3) << 9) | ((!!o->noino) << 8) | ((o->nomd5 & 3) << 9) |
((!!o->do_ecma119_map) << 11) | ((o->map_mode & 3) << 12); ((!!o->do_ecma119_map) << 11) | ((o->map_mode & 3) << 12) |
((!!o->do_joliet_map) << 14) | ((!!o->joliet_map_mode) << 15);
return(1); return(1);
} }
int isoburn_ropt_set_default_perms(struct isoburn_read_opts *o, int isoburn_ropt_set_default_perms(struct isoburn_read_opts *o,
uid_t uid, gid_t gid, mode_t mode) uid_t uid, gid_t gid, mode_t mode)
{ {
mode_t dirmode; mode_t dirmode;
o->uid= uid; o->uid= uid;
o->gid= gid; o->gid= gid;
skipping to change at line 1055 skipping to change at line 1060
int isoburn_ropt_get_size_what(struct isoburn_read_opts *o, int isoburn_ropt_get_size_what(struct isoburn_read_opts *o,
uint32_t *size, int *has_what) uint32_t *size, int *has_what)
{ {
*size= o->size; *size= o->size;
*has_what= (!!o->hasRR) | ((!!o->hasJoliet)<<1) | *has_what= (!!o->hasRR) | ((!!o->hasJoliet)<<1) |
((!!o->hasIso1999)<<2) | ((!!o->hasElTorito)<<3); ((!!o->hasIso1999)<<2) | ((!!o->hasElTorito)<<3);
return(1); return(1);
} }
int isoburn_ropt_get_tree_loaded(struct isoburn_read_opts *o,
int *tree, int *rr)
{
*tree= o->tree_loaded;
*rr= o->rr_loaded;
return(1);
}
/* ----------------------------------------------------------------------- */ /* ----------------------------------------------------------------------- */
/* /*
Options for image generation by libisofs and image transport to libburn. Options for image generation by libisofs and image transport to libburn.
*/ */
/* ----------------------------------------------------------------------- */ /* ----------------------------------------------------------------------- */
int isoburn_igopt_new(struct isoburn_imgen_opts **new_o, int flag) int isoburn_igopt_new(struct isoburn_imgen_opts **new_o, int flag)
{ {
struct isoburn_imgen_opts *o; struct isoburn_imgen_opts *o;
int i; int i;
 End of changes. 6 change blocks. 
3 lines changed or deleted 16 lines changed or added

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