"Fossies" - the Fresh Open Source Software Archive  

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

opts_i_o.c  (libisoburn-1.5.0):opts_i_o.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-2015 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 the implementation of options as mentioned in man page This file contains the implementation of options as mentioned in man page
or info file derived from xorriso.texi. or info file derived from xorriso.texi.
*/ */
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
#include "../config.h" #include "../config.h"
#endif #endif
skipping to change at line 31 skipping to change at line 31
#include <string.h> #include <string.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <sys/time.h> #include <sys/time.h>
#include <time.h> #include <time.h>
#include <errno.h> #include <errno.h>
#include "xorriso.h" #include "xorriso.h"
#include "xorriso_private.h" #include "xorriso_private.h"
#include "xorrisoburn.h" #include "xorrisoburn.h"
/* Command -iso_nowtime "dynamic"|timespec */
int Xorriso_option_iso_nowtime(struct XorrisO *xorriso, char *text, int flag)
{
char *time_type = "m";
int t_type= 0, ret;
time_t t;
if(strcmp(text, "dynamic") == 0) {
xorriso->do_override_now_time= 0;
Xorriso_set_libisofs_now(xorriso, 2);
Xorriso_msgs_submit(xorriso, 0, "-iso_nowtime: Set to \"dynamic\"", 0,
"NOTE", 0);
return(1);
}
ret= Xorriso_convert_datestring(xorriso, "-iso_nowtime", time_type, text,
&t_type, &t, 0);
if(ret<=0)
goto ex;
xorriso->do_override_now_time= 1;
xorriso->now_time_override= t;
Xorriso_set_libisofs_now(xorriso, 1);
sprintf(xorriso->info_text, "-iso_nowtime: Set to =%.f", (double) t);
Xorriso_msgs_submit(xorriso, 0, xorriso->info_text, 0, "NOTE", 0);
ret= 1;
ex:;
return(ret);
}
/* Option -iso_rr_pattern "on"|"ls"|"off" */ /* Option -iso_rr_pattern "on"|"ls"|"off" */
int Xorriso_option_iso_rr_pattern(struct XorrisO *xorriso, char *mode,int flag) int Xorriso_option_iso_rr_pattern(struct XorrisO *xorriso, char *mode,int flag)
{ {
if(strcmp(mode, "off")==0) if(strcmp(mode, "off")==0)
xorriso->do_iso_rr_pattern= 0; xorriso->do_iso_rr_pattern= 0;
else if(strcmp(mode, "on")==0) else if(strcmp(mode, "on")==0)
xorriso->do_iso_rr_pattern= 1; xorriso->do_iso_rr_pattern= 1;
else if(strcmp(mode, "ls")==0) else if(strcmp(mode, "ls")==0)
xorriso->do_iso_rr_pattern= 2; xorriso->do_iso_rr_pattern= 2;
else { else {
 End of changes. 2 change blocks. 
1 lines changed or deleted 29 lines changed or added

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