Made use of iso_set_abort_severity() with option -abort_on

This commit is contained in:
Thomas Schmitt 2008-01-28 10:54:55 +00:00
parent 9af078f81a
commit b03107dae8
4 changed files with 16 additions and 3 deletions

View File

@ -5969,6 +5969,7 @@ int Xorriso_option_abort_on(struct XorrisO *xorriso, char *severity, int flag)
if(Sfile_str(xorriso->abort_on_text,severity,0)<=0) if(Sfile_str(xorriso->abort_on_text,severity,0)<=0)
return(-1); return(-1);
xorriso->abort_on_severity= sev; xorriso->abort_on_severity= sev;
Xorriso_set_abort_severity(xorriso, 0);
return(1); return(1);
} }
@ -6013,7 +6014,7 @@ int Xorriso_option_add(struct XorrisO *xorriso, int argc, char **argv,
*wpt= 0; *wpt= 0;
} }
/* <<< do not apply wdx to both /* <<< do not apply wdx to both, but wdi to ISO and wdx to disk
if(source[0]!='/') { if(source[0]!='/') {
ret= Sfile_prepend_path(xorriso->wdx, source, 0); ret= Sfile_prepend_path(xorriso->wdx, source, 0);
if(ret<=0) if(ret<=0)

View File

@ -1 +1 @@
#define Xorriso_timestamP "2008.01.27.174454" #define Xorriso_timestamP "2008.01.28.105404"

View File

@ -3249,4 +3249,13 @@ int Xorriso_get_volid(struct XorrisO *xorriso, char volid[33], int flag)
volid[32]= 0; volid[32]= 0;
return(1); return(1);
} }
int Xorriso_set_abort_severity(struct XorrisO *xorriso, int flag)
{
int ret;
ret= iso_set_abort_severity(xorriso->abort_on_text);
return(ret>=0);
}

View File

@ -135,5 +135,8 @@ int Xorriso_set_volid(struct XorrisO *xorriso, char *volid, int flag);
int Xorriso_get_volid(struct XorrisO *xorriso, char volid[33], int flag); int Xorriso_get_volid(struct XorrisO *xorriso, char volid[33], int flag);
int Xorriso_set_abort_severity(struct XorrisO *xorriso, int flag);
#endif /* Xorrisoburn_includeD */ #endif /* Xorrisoburn_includeD */