New API call burn_sev_to_text()

This commit is contained in:
Thomas Schmitt 2008-02-03 09:25:58 +00:00
parent 3d0a5a4588
commit c88995342d
3 changed files with 23 additions and 1 deletions

View File

@ -1 +1 @@
#define Cdrskin_timestamP "2008.02.03.092134" #define Cdrskin_timestamP "2008.02.03.092509"

View File

@ -281,6 +281,18 @@ int burn_text_to_sev(char *severity_name, int *sevno, int flag)
} }
/* ts A80202 API */
int burn_sev_to_text(int severity_number, char **severity_name, int flag)
{
int ret;
ret = libdax_msgs__sev_to_text(severity_number, severity_name, 0);
if (ret <= 0)
*severity_name = "FATAL";
return ret;
}
int burn_builtin_abort_handler(void *handle, int signum, int flag) int burn_builtin_abort_handler(void *handle, int signum, int flag)
{ {

View File

@ -2146,6 +2146,16 @@ int burn_msgs_submit(int error_code, char msg_text[], int os_errno,
int burn_text_to_sev(char *severity_name, int *severity_number, int flag); int burn_text_to_sev(char *severity_name, int *severity_number, int flag);
/* ts A80202 : @since 0.4.4 */
/** Convert a severity number into a severity name
@param severity_number The rank number: the higher, the more severe.
@param severity_name A name as with burn_msgs_submit(), e.g. "SORRY".
@param flag Bitfield for control purposes (unused yet, submit 0)
*/
int burn_sev_to_text(int severity_number, char **severity_name, int flag);
/* ts A70915 */ /* ts A70915 */
/** Replace the messenger object handle of libburn by a compatible handle /** Replace the messenger object handle of libburn by a compatible handle
obtained from a related library. obtained from a related library.