New API call Xorriso__severity_list()

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

View File

@ -250,7 +250,7 @@ void isoburn_version(int *major, int *minor, int *micro);
*/ */
#define isoburn_libburn_req_major 1 #define isoburn_libburn_req_major 1
#define isoburn_libburn_req_minor 2 #define isoburn_libburn_req_minor 2
#define isoburn_libburn_req_micro 4 #define isoburn_libburn_req_micro 5
/** The minimum compile time requirements of libisoburn towards libjte are /** The minimum compile time requirements of libisoburn towards libjte are
the same as of a suitable libisofs towards libjte. the same as of a suitable libisofs towards libjte.

View File

@ -119,6 +119,7 @@ Xorriso__get_patch_level_text;
Xorriso__is_compatible; Xorriso__is_compatible;
Xorriso__preset_signal_behavior; Xorriso__preset_signal_behavior;
Xorriso__severity_cmp; Xorriso__severity_cmp;
Xorriso__severity_list;
Xorriso__version; Xorriso__version;
Xorriso_change_is_pending; Xorriso_change_is_pending;
Xorriso_destroy; Xorriso_destroy;

View File

@ -352,12 +352,12 @@ int Xorriso__sev_to_text(int severity, char **severity_name,
{ {
int ret; int ret;
ret= iso_sev_to_text(severity, severity_name); ret= iso_sev_to_text(severity, severity_name);
if(ret>0) if(ret>0)
return(ret); return(ret);
ret= burn_sev_to_text(severity, severity_name, 0); ret= burn_sev_to_text(severity, severity_name, 0);
if(ret>0) if(ret>0)
return(ret); return(ret);
*severity_name= ""; *severity_name= "";
return(0); 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 /* @param flag bit0= report libisofs error text
bit1= victim is disk_path bit1= victim is disk_path
bit2= do not inquire libisofs, report msg_text and min_severity 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. /** Compare two severity texts for their severeness.
Unknown severity texts get defaulted to "FATAL".
@since 1.2.6 @since 1.2.6
@param sev1 First severity text to compare @param sev1 First severity text to compare
@param sev2 Second 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); 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. /** Obtain the current problem status of the xorriso handle.
@param xorriso The environment handle @param xorriso The environment handle
@param severity The severity text matching the current problem status @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"