"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "xorriso/lib_mgt.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.

lib_mgt.c  (libisoburn-1.5.0):lib_mgt.c  (libisoburn-1.5.2)
/* xorriso - creates, loads, manipulates and burns ISO 9660 filesystem images. /* xorriso - creates, loads, manipulates and burns ISO 9660 filesystem images.
Copyright 2007-2016 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.
This file contains functions which manage the relation between xorriso This file contains functions which manage the relation between xorriso
and the libraries: libburn, libisofs, libisoburn. and the libraries: libburn, libisofs, libisoburn.
*/ */
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
#include "../config.h" #include "../config.h"
#endif #endif
skipping to change at line 959 skipping to change at line 959
if(flag & 2) if(flag & 2)
tile_blocks= blocks; tile_blocks= blocks;
} }
ret= isoburn_ropt_set_data_cache(ropts, num_tiles, tile_blocks, 0); ret= isoburn_ropt_set_data_cache(ropts, num_tiles, tile_blocks, 0);
return(ret); return(ret);
} }
int Xorriso_format_guid(struct XorrisO *xorriso, uint8_t guid[16], char *line, int Xorriso_format_guid(struct XorrisO *xorriso, uint8_t guid[16], char *line,
int flag) int flag)
{ {
int i;
line[0]= 0; /* >>> Maybe let the user switch between hex string and structured text */;
for(i= 3; i >= 0; i--)
sprintf(line + strlen(line), "%-2.2x", guid[i]); Xorriso__format_guid(guid, line, 1);
sprintf(line + strlen(line), "-");
for(i= 5; i >= 4; i--)
sprintf(line + strlen(line), "%-2.2x", guid[i]);
sprintf(line + strlen(line), "-");
for(i= 7; i >= 6; i--)
sprintf(line + strlen(line), "%-2.2x", guid[i]);
sprintf(line + strlen(line), "-");
for(i= 8; i < 10; i++)
sprintf(line + strlen(line), "%-2.2x", guid[i]);
sprintf(line + strlen(line), "-");
for(i= 10; i < 16; i++)
sprintf(line + strlen(line), "%-2.2x", guid[i]);
return(1); return(1);
} }
int Xorriso_make_guid(struct XorrisO *xorriso, char *line, int flag) int Xorriso_make_guid(struct XorrisO *xorriso, char *line, int flag)
{ {
uint8_t guid[16]; uint8_t guid[16];
int ret; int ret;
iso_generate_gpt_guid(guid); iso_generate_gpt_guid(guid);
ret= Xorriso_format_guid(xorriso, guid, line, 0); ret= Xorriso_format_guid(xorriso, guid, line, 0);
return(ret); return(ret);
} }
int Xorriso_set_libisofs_now(struct XorrisO *xorriso, int flag)
{
int ret;
time_t now;
if(xorriso->do_override_now_time) {
now= xorriso->now_time_override;
ret= iso_nowtime(&now, 1);
} else {
ret= iso_nowtime(&now, 0);
}
return(ret);
}
 End of changes. 4 change blocks. 
17 lines changed or deleted 4 lines changed or added

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