New API call Xorriso__severity_list()

This commit is contained in:
2012-12-15 09:29:08 +00:00
parent 513bafda92
commit d02501c16e
5 changed files with 26 additions and 8 deletions

View File

@ -352,12 +352,12 @@ int Xorriso__sev_to_text(int severity, char **severity_name,
{
int ret;
ret= iso_sev_to_text(severity, severity_name);
if(ret>0)
return(ret);
ret= burn_sev_to_text(severity, severity_name, 0);
if(ret>0)
return(ret);
ret= iso_sev_to_text(severity, severity_name);
if(ret>0)
return(ret);
ret= burn_sev_to_text(severity, severity_name, 0);
if(ret>0)
return(ret);
*severity_name= "";
return(0);
}
@ -396,6 +396,12 @@ int Xorriso__severity_cmp(char *sev1, char *sev2)
}
char *Xorriso__severity_list(int flag)
{
return(burn_list_sev_texts(0));
}
/* @param flag bit0= report libisofs error text
bit1= victim is disk_path
bit2= do not inquire libisofs, report msg_text and min_severity

View File

@ -529,6 +529,7 @@ int Xorriso_set_problem_status(struct XorrisO *xorriso, char *severity,
*/
/** Compare two severity texts for their severeness.
Unknown severity texts get defaulted to "FATAL".
@since 1.2.6
@param sev1 First severity text to compare
@param sev2 Second severity text to compare
@ -539,6 +540,16 @@ int Xorriso_set_problem_status(struct XorrisO *xorriso, char *severity,
int Xorriso__severity_cmp(char *sev1, char *sev2);
/** Return a blank separated list of severity names. Sorted from low
to high severity.
@since 1.2.6
@param flag Bitfield for control purposes (unused yet, submit 0)
@return A constant string with the severity names
*/
char *Xorriso__severity_list(int flag);
/** Obtain the current problem status of the xorriso handle.
@param xorriso The environment handle
@param severity The severity text matching the current problem status

View File

@ -1 +1 @@
#define Xorriso_timestamP "2012.12.13.193255"
#define Xorriso_timestamP "2012.12.15.092821"